fix config

This commit is contained in:
Tao Bojlen 2018-08-27 02:43:22 +02:00
parent f7a669dc6d
commit a08043f04e
2 changed files with 6 additions and 8 deletions

View file

@ -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'),
]

View file

@ -4,10 +4,3 @@ DEBUG = True
ALLOWED_HOSTS += ['localhost']
MIDDLEWARE += (
'silk.middleware.SilkyMiddleware',
)
INSTALLED_APPS += (
'silk',
)