File tree 5 files changed +7
-1
lines changed
5 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 82
82
# https://docs.djangoproject.com/en/1.7/howto/static-files/
83
83
84
84
STATIC_URL = '/static/'
85
+ STATIC_ROOT = 'static'
Original file line number Diff line number Diff line change 4
4
5
5
6
6
DATABASES ['default' ] = dj_database_url .config ()
7
+
8
+ STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
Original file line number Diff line number Diff line change 9
9
import os
10
10
11
11
from django .core .wsgi import get_wsgi_application
12
+ from whitenoise .django import DjangoWhiteNoise
12
13
13
14
14
15
os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "minicomi.settings.base" )
15
16
16
- application = get_wsgi_application ()
17
+ application = DjangoWhiteNoise ( get_wsgi_application () )
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ aiohttp==0.14.4
3
3
dj-database-url == 0.3.0
4
4
gunicorn == 19.2.1
5
5
psycopg2 == 2.5.4
6
+ whitenoise == 1.0.6
Original file line number Diff line number Diff line change
1
+ *
You can’t perform that action at this time.
0 commit comments