diff --git a/backend/settings/base.py b/backend/settings/base.py index 8773932..bd41a1a 100644 --- a/backend/settings/base.py +++ b/backend/settings/base.py @@ -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'), +] diff --git a/backend/settings/dev.py b/backend/settings/dev.py index 55d09be..a96496a 100644 --- a/backend/settings/dev.py +++ b/backend/settings/dev.py @@ -4,10 +4,3 @@ DEBUG = True ALLOWED_HOSTS += ['localhost'] -MIDDLEWARE += ( - 'silk.middleware.SilkyMiddleware', -) - -INSTALLED_APPS += ( - 'silk', -)