Skip to content

Commit

Permalink
chore: The core package should be the Django project
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 19, 2024
1 parent cb3a1c9 commit 20dba7e
Show file tree
Hide file tree
Showing 80 changed files with 2,408 additions and 2,410 deletions.
4 changes: 4 additions & 0 deletions core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html
from .celery import app as celery_app

__all__ = ("celery_app",)
4 changes: 2 additions & 2 deletions spoonbill_web/asgi.py → core/asgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
ASGI config for spoonbill_web project.
ASGI config for core project.
It exposes the ASGI callable as a module-level variable named ``application``.
Expand All @@ -13,7 +13,7 @@
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "spoonbill_web.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
django.setup()

import core.routing # noqa: E402
Expand Down
4 changes: 2 additions & 2 deletions spoonbill_web/celery.py → core/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "spoonbill_web.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")

app = Celery(
"spoonbill_web",
"core",
broker_connection_retry=False,
broker_connection_retry_on_startup=True,
broker_channel_error_retry=True,
Expand Down
Loading

0 comments on commit 20dba7e

Please sign in to comment.