mirror of
https://github.com/django/daphne.git
synced 2025-11-10 04:27:32 +03:00
39 lines
879 B
Python
39 lines
879 B
Python
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
import os
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
SECRET_KEY = '-3yt98bfvxe)7+^h#(@8k#1(1m_fpd9x3q2wolfbf^!r5ma62u'
|
|
|
|
DEBUG = True
|
|
|
|
INSTALLED_APPS = (
|
|
'django.contrib.auth',
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.sessions',
|
|
'channels',
|
|
)
|
|
|
|
ROOT_URLCONF = 'testproject.urls'
|
|
|
|
WSGI_APPLICATION = 'testproject.wsgi.application'
|
|
|
|
STATIC_URL = "/static/"
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
}
|
|
}
|
|
|
|
CHANNEL_LAYERS = {
|
|
"default": {
|
|
"BACKEND": "asgi_redis.RedisChannelLayer",
|
|
"ROUTING": "testproject.urls.channel_routing",
|
|
"CONFIG": {
|
|
"hosts": [os.environ.get('REDIS_URL', 'redis://127.0.0.1:6379')],
|
|
}
|
|
},
|
|
}
|