Skip to content

Commit

Permalink
Correct the environment names for database connection
Browse files Browse the repository at this point in the history
Fixes #178
  • Loading branch information
kallewesterling committed Jul 8, 2024
1 parent 15d7cfe commit 888bd65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/source/getting-started/setup/local/macos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ The file should look like this:

.. code-block::
NAME=<seshat_db_name>
USER=postgres
HOST=localhost
PORT=5432
PASSWORD=<db_password>
DB_NAME=<seshat_db_name>
DB_USER=postgres
DB_HOST=localhost
DB_PORT=5432
DB_PASSWORD=<db_password>
Step 10: Migrate the database
Expand Down
10 changes: 5 additions & 5 deletions seshat/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': env('NAME'),
'USER': 'postgres',
'HOST': env('HOST'),
'PORT': env('PORT'),
'PASSWORD': env('PASSWORD')
'NAME': env('DB_NAME'),
'USER': env('DB_USER') or 'postgres',
'HOST': env('DB_HOST'),
'PORT': env('DB_PORT'),
'PASSWORD': env('DB_PASSWORD')
}
}
"""
Expand Down

0 comments on commit 888bd65

Please sign in to comment.