Format code

This commit is contained in:
Christopher C. Wells 2022-05-22 15:24:04 -07:00 committed by Christopher Charbonneau Wells
parent cac4ce777a
commit 4d8466be99
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import dj_database_url
from .base import * from .base import *
RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME') RENDER_EXTERNAL_HOSTNAME = os.environ.get("RENDER_EXTERNAL_HOSTNAME")
if RENDER_EXTERNAL_HOSTNAME: if RENDER_EXTERNAL_HOSTNAME:
ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME) ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME)
CSRF_TRUSTED_ORIGINS.append("".join(["https://", RENDER_EXTERNAL_HOSTNAME])) CSRF_TRUSTED_ORIGINS.append("".join(["https://", RENDER_EXTERNAL_HOSTNAME]))
@ -12,8 +12,8 @@ if RENDER_EXTERNAL_HOSTNAME:
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases # https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = { DATABASES = {
'default': dj_database_url.config( "default": dj_database_url.config(
default='postgresql://postgres:postgres@localhost:5432/babybuddy', default="postgresql://postgres:postgres@localhost:5432/babybuddy",
conn_max_age=600 conn_max_age=600,
) )
} }