Skip to content

Commit

Permalink
i hope this changes
Browse files Browse the repository at this point in the history
  • Loading branch information
muremwa committed Sep 18, 2018
1 parent 00e29e6 commit 0438166
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
15 changes: 2 additions & 13 deletions note/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import dj_database_url
import django_heroku

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -128,16 +129,4 @@
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
# STATIC_ROOT = os.path.join(BASE_DIR, 'note/static')


db_from_env = dj_database_url.config(conn_max_age=500)

DATABASES['default'].update(db_from_env)

PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')

STATICFILES_DIRS = (os.path.join(PROJECT_ROOT, 'static'),)

STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
django_heroku.settings(locals())
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ markdown2==2.3.5
Pillow==5.1.0
gunicorn
djangorestframework
whitenoise==3.0
whitenoise==3.0
django-heroku

0 comments on commit 0438166

Please # to comment.