CHORE: Created .env file to store environment vars
This commit is contained in:
2
app.py
2
app.py
@@ -1,5 +1,6 @@
|
||||
from flask import Flask
|
||||
from os import environ
|
||||
from dotenv import load_dotenv
|
||||
from controllers.web.endpoints import blueprint
|
||||
|
||||
'''
|
||||
@@ -11,6 +12,7 @@ from controllers.web.endpoints import blueprint
|
||||
app: Flask = Flask(__name__)
|
||||
|
||||
# Set app secret key to sign session cookies
|
||||
load_dotenv()
|
||||
secret_key = environ.get("APPSECRET")
|
||||
if secret_key is None:
|
||||
# NO Secret Key set!
|
||||
|
||||
Reference in New Issue
Block a user