Skip to content

Commit d96bdea

Browse files
committed
Remove duplicated settings
1 parent 2ea94f5 commit d96bdea

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

djangoproject/settings/docker.py

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
from .common import * # noqa
22
from .dev import ( # noqa
33
CACHES,
4+
CSRF_COOKIE_SECURE,
5+
DEBUG,
6+
DOCS_BUILD_ROOT,
7+
EMAIL_BACKEND,
8+
MEDIA_ROOT,
9+
PUSH_SSL_CALLBACK,
10+
SESSION_COOKIE_SECURE,
411
SILENCED_SYSTEM_CHECKS,
12+
STATIC_ROOT,
13+
THUMBNAIL_DEBUG,
514
)
615

716
DATABASES = {
@@ -21,32 +30,10 @@
2130

2231
LOCALE_MIDDLEWARE_EXCLUDED_HOSTS = ["docs.djangoproject.localhost"]
2332

24-
DEBUG = True
25-
THUMBNAIL_DEBUG = DEBUG
26-
27-
CSRF_COOKIE_SECURE = False
28-
29-
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
30-
31-
MEDIA_ROOT = str(DATA_DIR.joinpath("media_root"))
32-
33-
SESSION_COOKIE_SECURE = False
34-
35-
STATIC_ROOT = str(DATA_DIR.joinpath("static_root"))
36-
37-
# Docs settings
38-
DOCS_BUILD_ROOT = DATA_DIR.joinpath("djangodocs")
39-
4033
# django-hosts settings
41-
4234
PARENT_HOST = "localhost:8000"
4335

44-
# django-push settings
45-
46-
PUSH_SSL_CALLBACK = False
47-
4836
# Enable optional components
49-
5037
if DEBUG:
5138
import debug_toolbar # NOQA
5239

0 commit comments

Comments
 (0)