start implementing mesh routing

This commit is contained in:
Laura Klünder 2022-04-15 20:57:11 +02:00
parent 67969951ed
commit 9bb79ff667
4 changed files with 61 additions and 10 deletions

View file

@ -291,6 +291,22 @@ ROOT_URLCONF = 'c3nav.urls'
WSGI_APPLICATION = 'c3nav.wsgi.application'
ASGI_APPLICATION = 'c3nav.asgi.application'
if HAS_REDIS:
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [config.get('redis', 'location')],
},
},
}
else:
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels.layers.InMemoryChannelLayer"
}
}
USE_I18N = True
USE_L10N = True
USE_TZ = True