Skip to content

Commit

Permalink
Use .dev as base in settings/docker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ulgens committed Jan 27, 2025
1 parent 3cfc274 commit e6c11b9
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions djangoproject/settings/docker.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
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,
)
from .dev import * # noqa: F403

DATABASES = {
"default": {
Expand All @@ -32,16 +19,3 @@

# django-hosts settings
PARENT_HOST = "localhost:8000"

# Enable optional components
if DEBUG:
INSTALLED_APPS.append("debug_toolbar")
INTERNAL_IPS = ["127.0.0.1"]
MIDDLEWARE.insert(
MIDDLEWARE.index("django.middleware.common.CommonMiddleware") + 1,
"debug_toolbar.middleware.DebugToolbarMiddleware",
)
MIDDLEWARE.insert(
MIDDLEWARE.index("debug_toolbar.middleware.DebugToolbarMiddleware") + 1,
"djangoproject.middleware.CORSMiddleware",
)

0 comments on commit e6c11b9

Please sign in to comment.