Loading .env_debug in Makefile; make clean command bugfix

This commit is contained in:
DarkCat09 2023-02-27 18:49:30 +04:00
parent 9af92175a9
commit 2aeccd44be
3 changed files with 5 additions and 10 deletions

View file

@ -15,17 +15,10 @@ templates_dir = str(
static_dir = str(
file_dir.parent / 'static'
)
debug_env = str(
file_dir.parent / '.env_debug'
)
is_debug = bool(os.getenv('DEBUG'))
if is_debug:
load_dotenv(debug_env)
class Settings(BaseSettings):
debug: bool = False
session_key: str = secrets.token_hex(32)
csrf_key: str = secrets.token_hex(32)