seeded apps.epic for backend gameboard logic; core.asgi & .settings now accomodate Channels via Redis; several new libraries in reqs to accomodate
This commit is contained in:
@@ -59,11 +59,13 @@ INSTALLED_APPS = [
|
||||
'apps.gameboard',
|
||||
# Gamer apps
|
||||
'apps.lyric',
|
||||
'apps.epic',
|
||||
# Custom apps
|
||||
'apps.api',
|
||||
'apps.applets',
|
||||
'functional_tests',
|
||||
# Depend apps
|
||||
'channels',
|
||||
'compressor',
|
||||
'rest_framework',
|
||||
]
|
||||
@@ -119,7 +121,7 @@ else:
|
||||
}
|
||||
}
|
||||
|
||||
# Celery & Redis
|
||||
# Celery & Redis & Channels (oh my)
|
||||
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'redis://localhost:6379/0')
|
||||
REDIS_URL = os.environ.get('REDIS_URL')
|
||||
if REDIS_URL:
|
||||
@@ -130,6 +132,14 @@ if REDIS_URL:
|
||||
}
|
||||
}
|
||||
SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
|
||||
CHANNEL_LAYERS = {
|
||||
'default': {
|
||||
'BACKEND': 'channels_redis.core.RedisChannelLayer',
|
||||
'CONFIG': {
|
||||
'hosts': [os.environ.get('REDIS_URL', 'redis://localhost:6379/1')],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/6.0/ref/settings/#auth-password-validators
|
||||
|
||||
Reference in New Issue
Block a user