Skip to content
This repository was archived by the owner on Oct 12, 2021. It is now read-only.

Commit 13a522a

Browse files
committed
Update settings.py
1 parent 29467c8 commit 13a522a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

project_name/settings.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
DATABASES = {
4444
'default': {
4545
'ENGINE': 'django.db.backends.mysql',
46-
'NAME': os.environ.get('MYSQL_DATABASE'),
47-
'USER': os.environ.get('MYSQL_USER'),
48-
'PASSWORD': os.environ.get('MYSQL_PASSWORD'),
49-
'HOST': '',
50-
'PORT': '3306',
46+
'NAME': os.environ.get('MYSQL_DATABASE', 'calaccess'),
47+
'USER': os.environ.get('MYSQL_USER', 'ccdc'),
48+
'PASSWORD': os.environ.get('MYSQL_PASSWORD', 'ccdc'),
49+
'HOST': os.environ.get('MYSQL_HOST', 'localhost'),
50+
'PORT': os.environ.get('MYSQL_PORT', '3306'),
5151
'OPTIONS': {
5252
'local_infile': 1,
5353
}

0 commit comments

Comments
 (0)