mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-02-23 06:12:06 +00:00
Always load the .env file
If the app is run in another way than `python app.py`, the environment file will not be loaded.
This commit is contained in:
parent
ca9e820552
commit
2111a2050c
1 changed files with 6 additions and 4 deletions
4
app.py
4
app.py
|
@ -7,7 +7,9 @@ from datetime import datetime, timedelta
|
|||
# IMPORT DES MODULES
|
||||
from modules.Classes import *
|
||||
|
||||
# On charge les variables d'environnement par défaut pour avoir la liste des cinémas
|
||||
# On charge les variables d'environnement...
|
||||
dotenv.load_dotenv(".env")
|
||||
# et celles par défaut pour avoir la liste des cinémas
|
||||
dotenv.load_dotenv(".env.sample")
|
||||
|
||||
WEBSITE_TITLE = os.environ.get("WEBSITE_TITLE", "GrainParisArt")
|
||||
|
|
Loading…
Add table
Reference in a new issue