File tree Expand file tree Collapse file tree 2 files changed +24
-30
lines changed
Expand file tree Collapse file tree 2 files changed +24
-30
lines changed Original file line number Diff line number Diff line change 4747# Enable optional components
4848
4949if DEBUG :
50- try :
51- import debug_toolbar # NOQA
52- except ImportError :
53- pass
54- else :
55- INSTALLED_APPS .append ("debug_toolbar" )
56- INTERNAL_IPS = ["127.0.0.1" ]
57- MIDDLEWARE .insert (
58- MIDDLEWARE .index ("django.middleware.common.CommonMiddleware" ) + 1 ,
59- "debug_toolbar.middleware.DebugToolbarMiddleware" ,
60- )
61- MIDDLEWARE .insert (
62- MIDDLEWARE .index ("debug_toolbar.middleware.DebugToolbarMiddleware" ) + 1 ,
63- "djangoproject.middleware.CORSMiddleware" ,
64- )
50+ import debug_toolbar # NOQA
51+
52+ INSTALLED_APPS .append ("debug_toolbar" )
53+ INTERNAL_IPS = ["127.0.0.1" ]
54+ MIDDLEWARE .insert (
55+ MIDDLEWARE .index ("django.middleware.common.CommonMiddleware" ) + 1 ,
56+ "debug_toolbar.middleware.DebugToolbarMiddleware" ,
57+ )
58+ MIDDLEWARE .insert (
59+ MIDDLEWARE .index ("debug_toolbar.middleware.DebugToolbarMiddleware" ) + 1 ,
60+ "djangoproject.middleware.CORSMiddleware" ,
61+ )
6562
6663SILENCED_SYSTEM_CHECKS = SILENCED_SYSTEM_CHECKS + [
6764 "django_recaptcha.recaptcha_test_key_error"
Original file line number Diff line number Diff line change 4949# Enable optional components
5050
5151if DEBUG :
52- try :
53- import debug_toolbar # NOQA
54- except ImportError :
55- pass
56- else :
57- INSTALLED_APPS .append ("debug_toolbar" )
58- INTERNAL_IPS = ["127.0.0.1" ]
59- MIDDLEWARE .insert (
60- MIDDLEWARE .index ("django.middleware.common.CommonMiddleware" ) + 1 ,
61- "debug_toolbar.middleware.DebugToolbarMiddleware" ,
62- )
63- MIDDLEWARE .insert (
64- MIDDLEWARE .index ("debug_toolbar.middleware.DebugToolbarMiddleware" ) + 1 ,
65- "djangoproject.middleware.CORSMiddleware" ,
66- )
52+ import debug_toolbar # NOQA
53+
54+ INSTALLED_APPS .append ("debug_toolbar" )
55+ INTERNAL_IPS = ["127.0.0.1" ]
56+ MIDDLEWARE .insert (
57+ MIDDLEWARE .index ("django.middleware.common.CommonMiddleware" ) + 1 ,
58+ "debug_toolbar.middleware.DebugToolbarMiddleware" ,
59+ )
60+ MIDDLEWARE .insert (
61+ MIDDLEWARE .index ("debug_toolbar.middleware.DebugToolbarMiddleware" ) + 1 ,
62+ "djangoproject.middleware.CORSMiddleware" ,
63+ )
You can’t perform that action at this time.
0 commit comments