Fix error in INSTALLED_APPS

This commit is contained in:
Keannu Bernasol 2024-09-07 00:08:28 +08:00
parent 5dcb369ae7
commit 7690e22c64

View file

@ -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",