Commit c503259b authored by Evili del Rio's avatar Evili del Rio

Add explicitly whitenoise[brotli]

parent a2146855
......@@ -92,3 +92,7 @@ ENV/
# django debug database
db.sqlite3
# django static root on BASE_DIR
/static
/staticfiles
\ No newline at end of file
......@@ -10,11 +10,14 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import django_heroku
import os
# 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.dirname(os.path.abspath(__file__))
)
)
# Quick-start development settings - unsuitable for production
......@@ -122,6 +125,13 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT='/tmp/static'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
#
# Herokuish
#
import django_heroku
TEST_RUNNER = 'django_heroku.HerokuDiscoverRunner'
django_heroku.settings(locals())
......@@ -2,3 +2,4 @@ Django<1.12; python_version >='3.0'
django-bootstrap3
psycopg2-binary
django-heroku
whitenoise[brotli]
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 to comment