From 8e0883cf99f04ebfb287aa45db06131e21884d32 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 9 Sep 2021 19:05:07 +0300 Subject: [PATCH] add db url --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 74ad764f..9dee1051 100644 --- a/settings.py +++ b/settings.py @@ -5,7 +5,7 @@ PORT = 8080 BACKEND_URL = "https://localhost:8080" -DB_URL = environ.get("DB_URL") or "sqlite:///db.sqlite3" +DB_URL = environ.get("DATABASE_URL") or environ.get("DB_URL") or "sqlite:///db.sqlite3" JWT_ALGORITHM = "HS256" JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key" JWT_LIFE_SPAN = 24 * 60 * 60 # seconds