Skip to content

Commit 421df36

Browse files
author
Kátia Nakamura
committed
wsgi: add dj-static to serve static files
1 parent 5f1d672 commit 421df36

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyconbalkan/wsgi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"""
99

1010
import os
11+
from dj_static import Cling
1112

1213
from django.core.wsgi import get_wsgi_application
1314

1415
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pyconbalkan.settings")
1516

16-
application = get_wsgi_application()
17+
application = Cling(get_wsgi_application())

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
dj-database-url==0.5.0
2+
dj-static==0.0.6
23
Django==1.11.11
34
python-decouple==3.1
45
pytz==2018.3
6+
static3==0.7.0

0 commit comments

Comments
 (0)