From e56a0697b35e1f5f950e7b0206575f1a468b9316 Mon Sep 17 00:00:00 2001 From: Swen Kooij Date: Sat, 19 Oct 2019 13:08:39 +0300 Subject: [PATCH] Add back dj-database-url, need it for CI --- requirements/test.txt | 1 + settings.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements/test.txt b/requirements/test.txt index 6d74268..c8ba029 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -16,6 +16,7 @@ pytest-django==3.6.0 pytest-cov==2.8.1 # Test support +dj-database-url==0.4.2 django-autoslug==1.9.3 django-bleach==0.3.0 psycopg2==2.7.3.2 diff --git a/settings.py b/settings.py index f910b8f..287bb4f 100644 --- a/settings.py +++ b/settings.py @@ -1,3 +1,5 @@ +import dj_database_url + DEBUG = True TEMPLATE_DEBUG = True @@ -6,10 +8,7 @@ SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { - 'default': { - 'HOST': '127.0.0.1', - 'NAME': 'localized_fields', - }, + 'default': dj_database_url.config(default='postgres:///psqlextra'), } DATABASES['default']['ENGINE'] = 'psqlextra.backend'