Skip to content

Commit

Permalink
Rename config to nous_aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed May 26, 2024
1 parent 1599a0b commit 4908b46
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main() -> None:
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nous_aggregator.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion config/asgi.py → nous_aggregator/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
from django.core.asgi import get_asgi_application
from django.core.handlers.asgi import ASGIHandler

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nous_aggregator.settings')

application: ASGIHandler = get_asgi_application()
4 changes: 2 additions & 2 deletions config/celery.py → nous_aggregator/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nous_aggregator.settings.local")

app = Celery("config")
app = Celery("nous_aggregator")

app.config_from_object("django.conf:settings", namespace="CELERY")

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions config/settings/base.py → nous_aggregator/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]

ROOT_URLCONF = "config.urls"
ROOT_URLCONF = "nous_aggregator.urls"

INTERNAL_IPS = [
"127.0.0.1",
Expand All @@ -87,7 +87,7 @@
},
]

WSGI_APPLICATION = "config.wsgi.application"
WSGI_APPLICATION = "nous_aggregator.wsgi.application"


# Logging
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion config/wsgi.py → nous_aggregator/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
from django.core.handlers.wsgi import WSGIHandler
from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nous_aggregator.settings')

application: WSGIHandler = get_wsgi_application()
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ plugins = ["mypy_django_plugin.main"]
ignore_missing_imports=true

[tool.django-stubs]
django_settings_module = "config.settings"
django_settings_module = "nous_aggregator.settings"

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
DJANGO_SETTINGS_MODULE = "nous_aggregator.settings"

[tool.pytype]
python_version = 3.11
Expand Down

0 comments on commit 4908b46

Please sign in to comment.