-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathsettings.py
More file actions
71 lines (52 loc) · 1.52 KB
/
settings.py
File metadata and controls
71 lines (52 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from pathlib import Path
from environs import Env
env = Env()
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = env.str("SECRET_KEY", default="extra-super-secret-development-key")
DEBUG = env.bool("DEBUG", default=False)
ALLOWED_HOSTS = ["*"]
INSTALLED_APPS = [
# Project
"cbv",
# Third Party Apps
"django_extensions",
"django_pygmy",
"sans_db",
# Django
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.staticfiles",
]
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
ROOT_URLCONF = "core.urls"
TEMPLATES = [
{
"BACKEND": "sans_db.template_backends.django_sans_db.DjangoTemplatesSansDB",
"APP_DIRS": True,
},
]
WSGI_APPLICATION = "core.wsgi.application"
DATABASES = {"default": env.dj_db_url("DATABASE_URL", default="sqlite:///ccbv.sqlite")}
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
LANGUAGE_CODE = "en"
TIME_ZONE = "Europe/London"
USE_I18N = False
USE_TZ = False
STATIC_ROOT = BASE_DIR / "staticfiles"
STATIC_URL = "/static/"
STORAGES = {
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},
}
CBV_SOURCES = {
"django.views.generic": "Generic",
"django.contrib.formtools.wizard.views": "Wizard",
"django.contrib.auth.views": "Auth",
"django.contrib.auth.mixins": "Auth",
}