0001-disable-debug-toolbar-36894.patch
roles/app-setup/templates/app-settings-base.j2 | ||
---|---|---|
45 | 45 | |
46 | 46 |
DEBUG = True |
47 | 47 | |
48 |
if PROJECT_NAME in ['authentic', 'combo', 'passerelle']: |
|
49 |
try: |
|
50 |
import debug_toolbar |
|
51 |
except ImportError: |
|
52 |
import sys |
|
53 |
print "Missing debug toolbar" |
|
54 |
sys.exit(1) |
|
48 |
# if PROJECT_NAME in ['authentic', 'combo', 'passerelle']:
|
|
49 |
# try:
|
|
50 |
# import debug_toolbar
|
|
51 |
# except ImportError:
|
|
52 |
# import sys
|
|
53 |
# print("Missing debug toolbar") |
|
54 |
# sys.exit(1)
|
|
55 | 55 | |
56 |
if vars().get('MIDDLEWARE'): |
|
57 |
MIDDLEWARE= ['debug_toolbar.middleware.DebugToolbarMiddleware'] + MIDDLEWARE |
|
58 |
else: |
|
59 |
MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES |
|
60 |
INSTALLED_APPS += ('debug_toolbar',) |
|
61 |
INTERNAL_IPS = ['127.0.0.1'] |
|
56 |
# if vars().get('MIDDLEWARE'):
|
|
57 |
# MIDDLEWARE= ['debug_toolbar.middleware.DebugToolbarMiddleware'] + MIDDLEWARE
|
|
58 |
# else:
|
|
59 |
# MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES
|
|
60 |
# INSTALLED_APPS += ('debug_toolbar',)
|
|
61 |
# INTERNAL_IPS = ['127.0.0.1']
|
|
62 | 62 | |
63 | 63 |
{% block app_custom_after %}{% endblock %} |
64 | 64 | |
65 |
- |