|
@@ -117,9 +117,7 @@ WSGI_APPLICATION = "bakerydemo.wsgi.application"
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
|
|
|
|
|
if "DATABASE_URL" in os.environ:
|
|
if "DATABASE_URL" in os.environ:
|
|
- DATABASES = {
|
|
|
|
- "default": dj_database_url.config(conn_max_age=500)
|
|
|
|
- }
|
|
|
|
|
|
+ DATABASES = {"default": dj_database_url.config(conn_max_age=500)}
|
|
else:
|
|
else:
|
|
DATABASES = {
|
|
DATABASES = {
|
|
"default": {
|
|
"default": {
|