Skip to content

Commit 36f87a7

Browse files
author
Matthew Fisher
committed
Merge pull request #398 from bacongobbler/one-more-time
fix(local_settings): infer database name from username
2 parents 95796d7 + 2827df2 commit 36f87a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/templates/local_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
with open('/var/run/secrets/deis/database/creds/password') as f:
1616
DATABASES['default']['PASSWORD'] = f.read().strip()
1717

18+
DATABASES['default']['NAME'] = DATABASES['default']['USER']
19+
1820
# scheduler settings
1921
SCHEDULER_MODULE = 'scheduler'
2022
SCHEDULER_URL = "https://{}:{}".format(

0 commit comments

Comments
 (0)