|
|
|
@ -2,11 +2,12 @@ from os import environ as env
|
|
|
|
|
from secrets import token_urlsafe
|
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
|
|
|
|
|
# load_dotenv()
|
|
|
|
|
DEBUG = 1 == env.get("DEBUG", 1)
|
|
|
|
|
if DEBUG:
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
|
|
HOST = env.get("HOST", "127.0.0.1")
|
|
|
|
|
TEMPLATES_AUTO_RELOAD = True
|
|
|
|
|
DEBUG = 1 == env.get("DEBUG", 1)
|
|
|
|
|
QUART_ENV = env.get("QUART_ENV", "development")
|
|
|
|
|
SECRET_KEY = env.get("SECRET_KEY", token_urlsafe(12))
|
|
|
|
|
QUART_AUTH_DURATION = 60 * 60 # 1 hour
|
|
|
|
|