Skip to content

Commit

Permalink
[settings][xs]: pull db config from environ if its there.
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuspollock committed Jan 24, 2014
1 parent 75c6d39 commit 976751e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanserviceprovider/default_settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

DEBUG = False
TESTING = False
SECRET_KEY = 'please_replace_me'
Expand All @@ -6,7 +8,7 @@

# database

SQLALCHEMY_DATABASE_URI = 'sqlite://'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'sqlite://')
SQLALCHEMY_ECHO = False

# webserver host and port
Expand Down

0 comments on commit 976751e

Please sign in to comment.