From ec51f0e257ee04f5ecba0bc6cfdd9350360a82a2 Mon Sep 17 00:00:00 2001 From: Linus Lewandowski Date: Sun, 28 May 2017 22:57:46 +0200 Subject: [PATCH 1/2] Use sqlite:///db.sqlite3 as the default DATABASE_URL Django is unusable with in-memory SQLite, because there is no way to run both migrate and runserver on the same one. It's better to provide a default that's usable (and usually perfect) on development environments. --- django12factor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django12factor/__init__.py b/django12factor/__init__.py index 5cf9dda..9955678 100644 --- a/django12factor/__init__.py +++ b/django12factor/__init__.py @@ -72,7 +72,7 @@ def factorise(custom_settings=None): } settings['DATABASES'] = { - 'default': dj_database_url.config(default='sqlite://:memory:') + 'default': dj_database_url.config(default='sqlite:///db.sqlite3') } for (key, value) in six.iteritems(os.environ): From 2f388c9ae93d57f3fbd8d3d779f20587a447ed22 Mon Sep 17 00:00:00 2001 From: Linus Lewandowski Date: Sun, 28 May 2017 22:58:15 +0200 Subject: [PATCH 2/2] Changelog: Use sqlite:///db.sqlite3 as the default DATABASE_URL --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f714141..79ecfb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased * Dropped Python 3.2 support +* Use sqlite:///db.sqlite3 as the default DATABASE_URL ## 1.3