mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 06:49:37 +02:00
Refactor environment variable names in .env.example and settings.py for consistency; add install script for streamlined setup
This commit is contained in:
parent
7707ac7769
commit
40f54529a4
3 changed files with 618 additions and 6 deletions
|
@ -105,9 +105,9 @@ ROOT_URLCONF = 'main.urls'
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||
'NAME': getenv('PGDATABASE'),
|
||||
'USER': getenv('PGUSER'),
|
||||
'PASSWORD': getenv('PGPASSWORD'),
|
||||
'NAME': getenv('PGDATABASE') or getenv('POSTGRES_DB'),
|
||||
'USER': getenv('PGUSER') or getenv('POSTGRES_USER'),
|
||||
'PASSWORD': getenv('PGPASSWORD') or getenv('POSTGRES_PASSWORD'),
|
||||
'HOST': getenv('PGHOST'),
|
||||
'PORT': getenv('PGPORT', 5432),
|
||||
'OPTIONS': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue