Skip to content

Commit

Permalink
whitenoise
Browse files Browse the repository at this point in the history
  • Loading branch information
mamodo123 committed Jul 7, 2020
1 parent fe6587c commit e3b0d28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cainapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'whitenoise.runserver_nostatic',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -127,4 +128,6 @@
os.path.join(BASE_DIR, 'cainapi/static'),
]

STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

django_heroku.settings(locals())

0 comments on commit e3b0d28

Please sign in to comment.