Skip to content

Commit 723c57d

Browse files
committed
Merged in [10953] from rjsparks@nostrum.com:
Use the same pattern for extending installed apps with middleware classes. - Legacy-Id: 10971 Note: SVN reference [10953] has been migrated to Git commit d411803
2 parents 87f51a3 + d411803 commit 723c57d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ def skip_unreadable_post(record):
576576

577577
# Set debug apps in DEV_APPS settings_local
578578
DEV_APPS = ()
579+
DEV_MIDDLEWARE_CLASSES = ()
579580
DRAFT_VIRTUAL_DOMAIN = "virtual.ietf.org"
580581

581582
GROUP_ALIASES_PATH = os.path.abspath(BASE_DIR + "/../test/data/group-aliases")
@@ -598,6 +599,8 @@ def skip_unreadable_post(record):
598599

599600
# Add DEV_APPS to INSTALLED_APPS
600601
INSTALLED_APPS += DEV_APPS
602+
MIDDLEWARE_CLASSES += DEV_MIDDLEWARE_CLASSES
603+
601604

602605
# We provide a secret key only for test and development modes. It's
603606
# absolutely vital that django fails to start in production mode unless a

0 commit comments

Comments
 (0)