add daphne
This commit is contained in:
parent
7b682ede29
commit
4c40597cd3
3 changed files with 2 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
|||
import os
|
||||
|
||||
from channels.auth import AuthMiddlewareStack
|
||||
from channels.routing import ProtocolTypeRouter, URLRouter
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
import c3nav.site.routing
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')
|
||||
|
||||
application = ProtocolTypeRouter({
|
||||
"http": get_asgi_application(),
|
||||
"websocket": AuthMiddlewareStack(
|
||||
URLRouter(
|
||||
c3nav.site.routing.websocket_urlpatterns
|
||||
)
|
||||
),
|
||||
})
|
|
@ -231,6 +231,7 @@ TILE_ACCESS_COOKIE_SECURE = not DEBUG
|
|||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"daphne",
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
|
|
@ -16,3 +16,4 @@ matplotlib==3.7.1
|
|||
scipy==1.10.1
|
||||
django_libsass==0.9
|
||||
channels==4.0.0
|
||||
daphne==4.0.0
|
Loading…
Add table
Add a link
Reference in a new issue