Skip to content

Commit

Permalink
Update deploy_django_project.sh fixing connection details
Browse files Browse the repository at this point in the history
Updated the file production.py to fix the username and dbname of postgres created according to the $APPNAME and not the smallpearl that was a hardcoded value.
  • Loading branch information
cesar128 authored Apr 18, 2019
1 parent b3ebc6e commit f24197a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy_django_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ SECRET_KEY = get_env_variable('SECRET_KEY')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'smallpearl',
'USER': 'smallpearl',
'NAME': '$APPNAME',
'USER': '$APPNAME',
'PASSWORD': get_env_variable('DB_PASSWORD'),
'HOST': 'localhost',
'PORT': '',
Expand Down

0 comments on commit f24197a

Please sign in to comment.