mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Fix error in INSTALLED_APPS
This commit is contained in:
parent
5dcb369ae7
commit
7690e22c64
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,6 @@ EMAIL_ADDRESS = (get_secret('EMAIL_ADDRESS') == 'True')
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'silk' if DEBUG else None,
|
|
||||||
'config',
|
'config',
|
||||||
'unfold',
|
'unfold',
|
||||||
'unfold.contrib.filters',
|
'unfold.contrib.filters',
|
||||||
|
@ -116,6 +115,7 @@ INSTALLED_APPS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
|
INSTALLED_APPS += ['silk']
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
"silk.middleware.SilkyMiddleware",
|
"silk.middleware.SilkyMiddleware",
|
||||||
|
|
Loading…
Reference in a new issue