From 82266c94068df498250cab941c0939dd7f940da4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 26 Apr 2016 19:04:18 +0100 Subject: [PATCH] use in memory sqlite --- .gitignore | 1 - project/settings.py | 2 +- scripts/fresh.sh | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9e45b85..3a7e4a2 100644 --- a/.gitignore +++ b/.gitignore @@ -59,4 +59,3 @@ docs/_build/ target/ private/ -database.db diff --git a/project/settings.py b/project/settings.py index 8b01305..534286d 100644 --- a/project/settings.py +++ b/project/settings.py @@ -67,7 +67,7 @@ WSGI_APPLICATION = 'project.wsgi.application' # Database # https://docs.djangoproject.com/en/1.8/ref/settings/#databases DATABASES = { - 'default': dj_database_url.config(default=os.environ['DATABASE_URL']) + 'default': dj_database_url.config(default='sqlite://memory') } EMAIL_BACKEND = os.environ['EMAIL_BACKEND'] diff --git a/scripts/fresh.sh b/scripts/fresh.sh index 151d878..4338659 100755 --- a/scripts/fresh.sh +++ b/scripts/fresh.sh @@ -21,7 +21,4 @@ rm -rf static/build/ echo ">> Removing Stray Files and Folders..." rm -rf htmlcov/ .coverage -echo ">> Removing Database..." -rm -rf database.db - echo "> Much Fresher!"