2017-08-09 21:48:20 +02:00
|
|
|
"""
|
|
|
|
Django local settings for the cof project.
|
|
|
|
The settings that are not listed here are imported from .common
|
|
|
|
"""
|
|
|
|
|
2017-08-11 18:24:09 +02:00
|
|
|
import os
|
|
|
|
|
2017-08-09 21:48:20 +02:00
|
|
|
from .dev import * # NOQA
|
2017-08-11 18:24:09 +02:00
|
|
|
from .dev import BASE_DIR
|
2017-08-09 21:48:20 +02:00
|
|
|
|
|
|
|
# Use sqlite for local development
|
|
|
|
DATABASES = {
|
|
|
|
"default": {
|
|
|
|
"ENGINE": "django.db.backends.sqlite3",
|
2018-10-06 12:35:49 +02:00
|
|
|
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
|
2017-08-09 21:48:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Use the default cache backend for local development
|
2018-10-06 12:35:49 +02:00
|
|
|
CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"}}
|
2017-08-09 21:48:20 +02:00
|
|
|
|
|
|
|
# Use the default in memory asgi backend for local development
|
|
|
|
CHANNEL_LAYERS = {
|
|
|
|
"default": {
|
|
|
|
"BACKEND": "asgiref.inmemory.ChannelLayer",
|
|
|
|
"ROUTING": "cof.routing.routing",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# No need to run collectstatic -> unset STATIC_ROOT
|
|
|
|
STATIC_ROOT = None
|