mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Then in your project's `asgi.py` file use this: ```python from configurations.asgi import get_asgi_application application = get_asgi_application() ```
14 lines
339 B
Python
14 lines
339 B
Python
from . import importer
|
|
|
|
importer.install()
|
|
|
|
try:
|
|
from django.core.asgi import get_asgi_application
|
|
except ImportError: # pragma: no cover
|
|
from django.core.handlers.asgi import ASGIHandler
|
|
|
|
def get_asgi_application(): # noqa
|
|
return ASGIHandler()
|
|
|
|
# this is just for the crazy ones
|
|
application = get_asgi_application()
|