Browse Source

Inline database config

Jake Howard 2 năm trước cách đây
mục cha
commit
b567e0485e
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      bakerydemo/settings/base.py

+ 1 - 3
bakerydemo/settings/base.py

@@ -117,9 +117,7 @@ WSGI_APPLICATION = "bakerydemo.wsgi.application"
 # https://docs.djangoproject.com/en/3.2/ref/settings/#databases
 
 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:
     DATABASES = {
         "default": {