Commit 019ac69e by Kenneth Reitz

updated settings

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
parent 298bf586
...@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/2.0/ref/settings/ ...@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
import os import os
import dj_database_url import dj_database_url
import django_heroku
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
...@@ -131,3 +132,6 @@ STATICFILES_DIRS = [ ...@@ -131,3 +132,6 @@ STATICFILES_DIRS = [
# Simplified static file serving. # Simplified static file serving.
# https://warehouse.python.org/project/whitenoise/ # https://warehouse.python.org/project/whitenoise/
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
# Activate Django-Heroku.
django_heroku.settings(locals())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment