DB_URI to DB_URL

This commit is contained in:
knst-kotov 2021-07-26 09:17:22 +00:00
parent a872ebdf31
commit f132b09e4f
2 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,9 @@ from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql.schema import Table
from settings import DB_URI
from settings import DB_URL
engine = create_engine(DB_URI, convert_unicode=True, echo=False)
engine = create_engine(DB_URL, convert_unicode=True, echo=False)
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
global_session = Session()

View File

@ -3,7 +3,7 @@ from os import environ
PORT = 80
DB_URI = environ.get("DB_URI") or "postgresql://postgres:postgres@localhost/discours"
DB_URL = environ.get("DB_URL") or "postgresql://postgres:postgres@localhost/discours"
JWT_ALGORITHM = "HS256"
JWT_SECRET_KEY = "8f1bd7696ffb482d8486dfbc6e7d16dd-secret-key"
JWT_LIFE_SPAN = 24 * 60 * 60 # seconds