Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created January 22, 2020 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/96c617759d60a1ceac5410335e87a955 to your computer and use it in GitHub Desktop.
Save Porter97/96c617759d60a1ceac5410335e87a955 to your computer and use it in GitHub Desktop.
Class Config:
# …
MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.googlemail.com')
MAIL_PORT = int(os.environ.get('MAIL_PORT', '587'))
MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS', 'true').lower() in \
['true', 'on', '1']
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
SQLALCHEMY_TRACK_MODIFICATIONS = False
OFFBRAND_MAIL_SUBJECT_PREFIX = '[Offbrand]'
OFFBRAND_MAIL_SENDER = 'Offbrand Admin <admin@offbrand.co>'
OFFBRAND_ADMIN = os.environ.get('OFFBRAND_ADMIN')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_RECORD_QUERIES = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment