Pull all test database options from env variables

Just pulling two and assuming others broke the base configuration I was
using, which uses a different database name and has a password.
This commit is contained in:
Tim Heap 2014-07-09 15:44:17 +10:00
parent 747aeb9f78
commit 793fa3327b

View file

@ -34,8 +34,9 @@ if not settings.configured:
DATABASES={
'default': {
'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.postgresql_psycopg2'),
'NAME': 'wagtaildemo',
'NAME': os.environ.get('DATABASE_NAME', 'wagtaildemo'),
'USER': os.environ.get('DATABASE_USER', 'postgres'),
'PASSWORD': os.environ.get('DATABASE_PASS', None),
}
},
ROOT_URLCONF='wagtail.tests.urls',