From cc8eaaa04c5fc8ca7a76a06ca5673e5695e76823 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Sun, 5 Dec 2021 23:32:13 +0300 Subject: [PATCH] Took out more variables from config.py to env --- config.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/config.py b/config.py index ba142b9..483247c 100644 --- a/config.py +++ b/config.py @@ -6,11 +6,11 @@ from os import getenv CLIENT_ID = getenv('client_id') assert CLIENT_ID, "No client_id in env" -log_level = 'DEBUG' +log_level = os.getenv('LOG_LEVEL', 'DEBUG').upper() access_key = os.getenv('access_key') -REDIRECT_URL = requests.utils.quote("http://127.0.0.1:9000/fdev-redirect") +REDIRECT_URL = requests.utils.quote(os.getenv('REDIRECT_URL')) AUTH_URL = 'https://auth.frontierstore.net/auth' TOKEN_URL = 'https://auth.frontierstore.net/token' PROPER_USER_AGENT = 'EDCD-a31-0.2' @@ -27,16 +27,3 @@ REDIRECT_HTML_TEMPLATE = """ """ - -ADMIN_USERS_TEMPLATE = """ - - - - - - {} - - -""" - -ADMIN_USER_TEMPLATE = '{desc}'