Configure WhiteNoise to serve static files
This commit is contained in:
parent
fcf0ccde53
commit
df9fdb39f7
1 changed files with 3 additions and 1 deletions
|
@ -13,4 +13,6 @@ from django.core.wsgi import get_wsgi_application
|
|||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
|
||||
|
||||
application = get_wsgi_application()
|
||||
from whitenoise.django import DjangoWhiteNoise
|
||||
|
||||
application = DjangoWhiteNoise(get_wsgi_application())
|
||||
|
|
Loading…
Reference in a new issue