2020-04-14 12:47:18 +08:00
|
|
|
from dotenv import load_dotenv
|
|
|
|
from os import getenv
|
2020-04-06 20:14:19 +08:00
|
|
|
|
|
|
|
|
2020-04-14 12:47:18 +08:00
|
|
|
load_dotenv()
|
2020-04-06 20:14:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
DEBUG = True if getenv('FLASK_DEBUG') == 'True' else False
|
|
|
|
SECRET_KEY = getenv('FLASK_SECRET_KEY')
|
|
|
|
|
|
|
|
MAIL_SERVER = getenv("FLASK_MAIL_SERVER")
|
|
|
|
MAIL_PORT = getenv("FLASK_MAIL_PORT")
|
|
|
|
MAIL_USE_SSL = getenv("FLASK_MAIL_USE_SSL")
|
|
|
|
MAIL_DEBUG = DEBUG
|
|
|
|
MAIL_USERNAME = getenv("FLASK_MAIL_USERNAME")
|
|
|
|
MAIL_PASSWORD = getenv("FLASK_MAIL_PASSWORD")
|
|
|
|
|
|
|
|
MAIL_RECIPIENT = getenv("FLASK_MAIL_RECIPIENT")
|
2020-04-14 13:19:30 +08:00
|
|
|
|
|
|
|
CORS_ALLOWED_ORIGINS = getenv("FLASK_CORS_ORIGINS")
|
|
|
|
CORS_ALLOWED_HEADERS = getenv("FLASK_CORS_ALLOW_HEADERS")
|