|
@ -52,15 +52,12 @@ INSTALLED_APPS = [ |
|
|
'django.contrib.sessions', |
|
|
'django.contrib.sessions', |
|
|
'django.contrib.messages', |
|
|
'django.contrib.messages', |
|
|
'django.contrib.staticfiles', |
|
|
'django.contrib.staticfiles', |
|
|
'server.apps.ServerConfig', |
|
|
|
|
|
'api.apps.ApiConfig', |
|
|
'api.apps.ApiConfig', |
|
|
# 'widget_tweaks', |
|
|
|
|
|
'rest_framework', |
|
|
'rest_framework', |
|
|
'rest_framework.authtoken', |
|
|
'rest_framework.authtoken', |
|
|
'django_filters', |
|
|
'django_filters', |
|
|
'social_django', |
|
|
'social_django', |
|
|
'polymorphic', |
|
|
'polymorphic', |
|
|
# 'webpack_loader', |
|
|
|
|
|
'corsheaders', |
|
|
'corsheaders', |
|
|
'drf_yasg' |
|
|
'drf_yasg' |
|
|
] |
|
|
] |
|
@ -124,17 +121,6 @@ STATICFILES_DIRS = [ |
|
|
|
|
|
|
|
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' |
|
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' |
|
|
|
|
|
|
|
|
WEBPACK_LOADER = { |
|
|
|
|
|
'DEFAULT': { |
|
|
|
|
|
'CACHE': not DEBUG, |
|
|
|
|
|
'BUNDLE_DIR_NAME': 'bundle/', |
|
|
|
|
|
'STATS_FILE': path.join(BASE_DIR, 'server', 'static', 'webpack-stats.json'), |
|
|
|
|
|
'POLL_INTERVAL': 0.1, |
|
|
|
|
|
'TIMEOUT': None, |
|
|
|
|
|
'IGNORE': [r'.*\.hot-update.js', r'.+\.map'] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
WSGI_APPLICATION = 'app.wsgi.application' |
|
|
WSGI_APPLICATION = 'app.wsgi.application' |
|
|
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = [ |
|
|
AUTHENTICATION_BACKENDS = [ |
|
|