Skip to content

Commit

Permalink
Remove duplicated settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ulgens committed Jan 27, 2025
1 parent 2ea94f5 commit d96bdea
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions djangoproject/settings/docker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
from .common import * # noqa
from .dev import ( # noqa
CACHES,
CSRF_COOKIE_SECURE,
DEBUG,
DOCS_BUILD_ROOT,
EMAIL_BACKEND,
MEDIA_ROOT,
PUSH_SSL_CALLBACK,
SESSION_COOKIE_SECURE,
SILENCED_SYSTEM_CHECKS,
STATIC_ROOT,
THUMBNAIL_DEBUG,
)

DATABASES = {
Expand All @@ -21,32 +30,10 @@

LOCALE_MIDDLEWARE_EXCLUDED_HOSTS = ["docs.djangoproject.localhost"]

DEBUG = True
THUMBNAIL_DEBUG = DEBUG

CSRF_COOKIE_SECURE = False

EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

MEDIA_ROOT = str(DATA_DIR.joinpath("media_root"))

SESSION_COOKIE_SECURE = False

STATIC_ROOT = str(DATA_DIR.joinpath("static_root"))

# Docs settings
DOCS_BUILD_ROOT = DATA_DIR.joinpath("djangodocs")

# django-hosts settings

PARENT_HOST = "localhost:8000"

# django-push settings

PUSH_SSL_CALLBACK = False

# Enable optional components

if DEBUG:
import debug_toolbar # NOQA

Expand Down

0 comments on commit d96bdea

Please sign in to comment.