Skip to content

Commit

Permalink
add database defs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandra Reddy authored and Chandra Reddy committed Apr 2, 2024
1 parent de02149 commit 53dac9a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@
'drf_dynamic_fields'
]


DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.getenv('DB_NAME'),
'USER': os.getenv('DB_USER'),
'PASSWORD': os.getenv('DB_PASSWORD'),
'HOST': os.getenv('DB_HOST'),
'PORT': os.getenv('DB_PORT', 3306),
},
}

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down

0 comments on commit 53dac9a

Please sign in to comment.