tylerklane 2024-03-29 15:13:43 -04:00
commit f5a4a3f726
2 changed files with 10 additions and 10 deletions

View File

@ -80,13 +80,13 @@ WSGI_APPLICATION = "alttextbackend.wsgi.application"
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.environ['DATABASE_NAME'],
'USER': os.environ['DATABASE_USER'],
'PASSWORD': os.environ['DATABASE_PASSWORD'],
'HOST': os.environ['DATABASE_HOST'], # Or the address of your database server
'PORT': os.environ['DATABASE_PORT'], # Default PostgreSQL port
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": os.environ["DATABASE_NAME"],
"USER": os.environ["DATABASE_USER"],
"PASSWORD": os.environ["DATABASE_PASSWORD"],
"HOST": os.environ["DATABASE_HOST"], # Or the address of your database server
"PORT": os.environ["DATABASE_PORT"], # Default PostgreSQL port
}
}

View File

@ -1,3 +1,3 @@
django
django_rest_framework
python-dotenv
django==4.2.6
djangorestframework==3.14.0
python-dotenv==1.0.1