kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
747aeb9f78
commit
793fa3327b
|
@ -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',
|
||||
|
|
Ładowanie…
Reference in New Issue