mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-16 11:13:15 +00:00
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:
parent
747aeb9f78
commit
793fa3327b
1 changed files with 2 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue