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.
pull/442/head
Tim Heap 2014-07-09 15:44:17 +10:00
rodzic 747aeb9f78
commit 793fa3327b
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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',