@@ -123,6 +123,8 @@ WSGI_APPLICATION = "bakerydemo.wsgi.application"
if "DATABASE_URL" in os.environ:
DATABASES = {"default": dj_database_url.config(conn_max_age=500)}
+ if os.environ["DATABASE_URL"].startswith("postgres://"):
+ INSTALLED_APPS.append("django.contrib.postgres")
else:
DATABASES = {
"default": {