Loading .env_debug in Makefile; make clean command bugfix
This commit is contained in:
parent
9af92175a9
commit
2aeccd44be
3 changed files with 5 additions and 10 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue