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