We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee67217 commit dece5adCopy full SHA for dece5ad
1 file changed
packagebuilder/settings.py
@@ -50,6 +50,7 @@
50
51
MIDDLEWARE = [
52
'django.middleware.security.SecurityMiddleware',
53
+ 'whitenoise.middleware.WhiteNoiseMiddleware',
54
'django.contrib.sessions.middleware.SessionMiddleware',
55
'django.middleware.common.CommonMiddleware',
56
'django.middleware.csrf.CsrfViewMiddleware',
@@ -107,11 +108,12 @@
107
108
# Static files (CSS, JavaScript, Images)
109
# https://docs.djangoproject.com/en/1.6/howto/static-files/
110
-STATIC_ROOT = 'staticfiles'
111
+STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
112
STATIC_URL = '/static/'
113
ADMIN_MEDIA_PREFIX = '/static/admin/'
114
115
STATICFILES_DIRS = (
116
+ os.path.join(BASE_DIR, 'static'),
117
os.path.join(PROJECT_PATH, 'static'),
118
)
119
0 commit comments