-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsettings.py
More file actions
70 lines (58 loc) · 1.84 KB
/
settings.py
File metadata and controls
70 lines (58 loc) · 1.84 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ROOT_URLCONF = "tests.django.urls"
SECRET_KEY = (
"e4ac21f475d9d1c4b426f82640e7772d7f09fd8caa78919abbfcc4949bd74aa1b48302a3d2162cdd"
)
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/0",
"OPTIONS": {"REDIS_CLIENT_CLASS": "fakeredis.FakeStrictRedis"},
}
}
MIDDLEWARE = ["dockerflow.django.middleware.DockerflowMiddleware"]
INSTALLED_APPS = [
"django.contrib.contenttypes",
"django.contrib.auth",
"dockerflow.django",
]
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
SILENCED_SYSTEM_CHECKS = [
"security.W001",
"security.W002",
"security.W003",
"security.W009",
"security.W016",
"security.W017",
]
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"OPTIONS": {
"loaders": [
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
]
},
}
]
LOGGING = {
"version": 1,
"formatters": {
"json": {"()": "dockerflow.logging.JsonLogFormatter", "logger_name": "tests"}
},
"handlers": {
"console": {
"level": "DEBUG",
"class": "logging.StreamHandler",
"formatter": "json",
}
},
"loggers": {"request.summary": {"handlers": ["console"], "level": "DEBUG"}},
}
USE_TZ = True # Default False until Django 5.0, when it switches to True