Fakultas Ilmu Komputer UI

Commit bfe1e0b0 authored by Putu Agastya's avatar Putu Agastya
Browse files

[CHORES] Fix database definition in settings.py

parent 828c10df
Pipeline #37380 passed with stages
in 5 minutes and 58 seconds
......@@ -92,6 +92,7 @@ if is_local:
}
}
elif is_heroku:
DATABASES = {}
database_url = os.getenv("DATABASE_URL")
DATABASES["default"] = dj_database_url.parse(database_url, conn_max_age=600)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment