summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2013-12-25 18:52:12 +0200
committerYuval Adam <yuv.adm@gmail.com>2013-12-25 18:52:12 +0200
commitc6253c8fba57f16bd99e524d8cd31d808bc834ac (patch)
tree032bec5dae2179ce5c3b2d28cd8560634fa4a5ab
parenta5436ac363f8785873a4aa505e49c37f7f48ab73 (diff)
Use dj_database_url on dokku
-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