mirror of https://github.com/interlegis/sapl.git
5 changed files with 31 additions and 1 deletions
@ -0,0 +1,14 @@ |
|||||
|
""" |
||||
|
ASGI entrypoint. Configures Django and then runs the application |
||||
|
defined in the ASGI_APPLICATION setting. |
||||
|
""" |
||||
|
|
||||
|
import os |
||||
|
|
||||
|
from channels.routing import get_default_application |
||||
|
import django |
||||
|
|
||||
|
|
||||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sapl.settings") |
||||
|
django.setup() |
||||
|
application = get_default_application() |
||||
@ -0,0 +1,5 @@ |
|||||
|
from channels.routing import ProtocolTypeRouter |
||||
|
|
||||
|
application = ProtocolTypeRouter({ |
||||
|
# Empty for now (http->django views is added by default) |
||||
|
}) |
||||
Loading…
Reference in new issue