Created
April 15, 2015 11:00
-
-
Save creimers/04143c1b2e7f7dec5033 to your computer and use it in GitHub Desktop.
django database from venv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if 'DATABASE_URL' not in os.environ: | |
os.environ['DATABASE_URL'] = 'sqlite:///'+ BASE_DIR + '/project.db' | |
import dj_database_url | |
DATABASES = { | |
'default': | |
dj_database_url.config() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment