File tree 1 file changed +14
-6
lines changed
1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 32
32
33
33
# Application definition
34
34
35
+ THIRD_PARTY_PREPEND = (
36
+ 'jet' , # App that should be apper before other apps
37
+ )
38
+
35
39
INTERNAL_APPS = (
36
- 'jet' ,
37
40
'django.contrib.admin' ,
38
41
'django.contrib.auth' ,
39
42
'django.contrib.contenttypes' ,
46
49
47
50
THIRD_PARTY_APPS = (
48
51
'crispy_forms' ,
49
- 'debug_toolbar' ,
50
52
'django_extensions' ,
51
53
'disqus' ,
52
54
'filebrowser' ,
53
55
'mptt' ,
56
+ 'taggit' ,
54
57
'tinymce' ,
55
58
'widget_tweaks' ,
56
- 'taggit' ,
57
59
)
58
60
59
61
PROJECT_APPS = (
60
- 'core_blog' ,
61
62
'back_office' ,
63
+ 'core_blog' ,
62
64
)
63
65
64
- INSTALLED_APPS = INTERNAL_APPS + THIRD_PARTY_APPS + PROJECT_APPS
65
66
66
67
MIDDLEWARE = [
67
68
'django.middleware.security.SecurityMiddleware' ,
71
72
'django.contrib.auth.middleware.AuthenticationMiddleware' ,
72
73
'django.contrib.messages.middleware.MessageMiddleware' ,
73
74
'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
74
- 'debug_toolbar.middleware.DebugToolbarMiddleware' ,
75
75
]
76
76
77
77
ROOT_URLCONF = 'fosstack.urls'
195
195
196
196
TAGGIT_CASE_INSENSITIVE = True # taggit
197
197
CRISPY_TEMPLATE_PACK = 'bootstrap4' # Crispy form
198
+
199
+ if DEBUG :
200
+ THIRD_PARTY_APPS += ('debug_toolbar' ,)
201
+ MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware' ,)
202
+
203
+ INSTALLED_APPS = (
204
+ THIRD_PARTY_PREPEND + INTERNAL_APPS + THIRD_PARTY_APPS + PROJECT_APPS
205
+ )
You can’t perform that action at this time.
0 commit comments