fix config
This commit is contained in:
parent
f7a669dc6d
commit
a08043f04e
|
@ -52,12 +52,14 @@ INSTALLED_APPS = [
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
'silk',
|
||||
'scraper.apps.ScraperConfig',
|
||||
'apiv1.apps.Apiv1Config',
|
||||
'rest_framework',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
'silk.middleware.SilkyMiddleware',
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
|
@ -138,4 +140,7 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/2.1/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
]
|
||||
|
||||
|
|
|
@ -4,10 +4,3 @@ DEBUG = True
|
|||
|
||||
ALLOWED_HOSTS += ['localhost']
|
||||
|
||||
MIDDLEWARE += (
|
||||
'silk.middleware.SilkyMiddleware',
|
||||
)
|
||||
|
||||
INSTALLED_APPS += (
|
||||
'silk',
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue