Skip to content

Commit

Permalink
fix(cfg): idiot's config construction
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao committed May 25, 2024
1 parent f0b8435 commit 6520240
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fuhoblog/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
DATABASES |= {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.environ['MYSQL_DATABASE'],
'USER': os.environ['MYSQL_PASSWORD'],
'PASSWORD': os.environ['MYSQL_PASSWORD'],
'HOST': os.environ['MYSQL_HOST'],
'PORT': os.environ['MYSQL_PORT'],
'NAME': DATABASE_ENVIRON.path or 'wagtail',
'USER': DATABASE_ENVIRON.username or 'root',
'PASSWORD': DATABASE_ENVIRON.password or '',
'HOST': DATABASE_ENVIRON.hostname or 'localhost',
'PORT': int(DATABASE_ENVIRON.port) or 3306,
},
}
else:
Expand Down

0 comments on commit 6520240

Please sign in to comment.