mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-13 01:53:10 +00:00
Allow setting database parameters through env
This commit is contained in:
parent
536a841bf3
commit
cb1fefb793
1 changed files with 5 additions and 5 deletions
|
|
@ -27,11 +27,11 @@ MIDDLEWARE = [
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'auditlog' + os.environ.get("TOX_PARALLEL_ENV", ""),
|
||||
'USER': 'postgres',
|
||||
'PASSWORD': '',
|
||||
'HOST': '127.0.0.1',
|
||||
'PORT': '5432',
|
||||
'NAME': os.getenv('TEST_DB_NAME', 'auditlog' + os.environ.get("TOX_PARALLEL_ENV", "")),
|
||||
'USER': os.getenv('TEST_DB_USER', 'postgres'),
|
||||
'PASSWORD': os.getenv('TEST_DB_PASS', ''),
|
||||
'HOST': os.getenv('TEST_DB_HOST', '127.0.0.1'),
|
||||
'PORT': os.getenv('TEST_DB_PORT', '5432'),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue