-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
39 lines (29 loc) · 882 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
class Config:
# WTF FORMS SECURITY KEY
SECRET_KEY = os.environ.get("SECRET_KEY")
# SQLALCHEMY KEYS
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://caleb:admin@localhost/pitch_perfect'
SQLALCHEMY_TRACK_MODIFICATIONS = True
# DISPLAY PICTURE UPLOAD DESTINATION
UPLOADED_PHOTOS_DEST = 'app/static/images'
# MAIL CONFIGURATION
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get('EMAIL_USERNAME')
MAIL_PASSWORD = os.environ.get('EMAIL_PASSWORD')
# Markup converter
SIMPLEMDE_JS_IIFE = True
SIMPLEMDE_USE_CDN = True
@staticmethod
def init_app(app):
pass
class ProdConfig(Config):
pass
class DevConfig(Config):
DEBUG = True
config_options = {
'development': DevConfig,
'production': ProdConfig
}