1
0
Fork 0
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:
Sean Morley 2025-05-26 16:55:00 -04:00
parent 7707ac7769
commit 40f54529a4
3 changed files with 618 additions and 6 deletions

View file

@ -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': {