diff --git a/babybuddy/settings/render.py b/babybuddy/settings/render.py index ba9093e2..d4aaeba9 100644 --- a/babybuddy/settings/render.py +++ b/babybuddy/settings/render.py @@ -2,7 +2,7 @@ import dj_database_url 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: ALLOWED_HOSTS.append(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 DATABASES = { - 'default': dj_database_url.config( - default='postgresql://postgres:postgres@localhost:5432/babybuddy', - conn_max_age=600 + "default": dj_database_url.config( + default="postgresql://postgres:postgres@localhost:5432/babybuddy", + conn_max_age=600, ) }