summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newsdiff/settings/dokku.py7
-rw-r--r--requirements.txt1
2 files changed, 8 insertions, 0 deletions
diff --git a/newsdiff/settings/dokku.py b/newsdiff/settings/dokku.py
index 01cde0e..867b637 100644
--- a/newsdiff/settings/dokku.py
+++ b/newsdiff/settings/dokku.py
@@ -1,5 +1,12 @@
+import dj_database_url
+
+from os import environ
from .base import *
ENV = 'dokku'
+DATABASES = {
+ 'default': dj_database_url.config()
+}
+
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
diff --git a/requirements.txt b/requirements.txt
index c9a742f..620a55b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,6 +7,7 @@ anyjson==0.3.3
beautifulsoup4==4.3.2
billiard==3.3.0.11
celery==3.1.6
+dj-database-url==0.2.2
django-nose==1.2
django-reversion==1.8.0
django-storages==1.1.8