mirror of https://github.com/snachodog/mybuddy.git
Format code
This commit is contained in:
parent
cac4ce777a
commit
4d8466be99
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue