-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
52 lines (41 loc) · 1.32 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
class Config:
'''
General configuration parent class
'''
SECRET_KEY ='2%W%@+kp%@mZJ'
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://kakan:Abiathar2022@localhost/pitches'
SQLALCHEMY_TRACK_MODIFICATIONS=True
UPLOADED_PHOTOS_DEST ='app/static/photos'
# email configurations
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get("[email protected]")
MAIL_PASSWORD = os.environ.get("edithaseyo#*")
SUBJECT_PREFIX = 'sixty seconds Pitch'
SENDER_EMAIL = '[email protected]'
# simple mde configurations
SIMPLEMDE_JS_IIFE = True
SIMPLEMDE_USE_CDN = True
class TestConfig(Config):
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://kakan:Abiathar2022@localhost/pitch_test'
class ProdConfig(Config):
'''
Production configuration child class
Args:
Config: The parent configuration class with General configuration settings
'''
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL")
class DevConfig(Config):
'''
Development configuration child class
Args:
Config: The parent configuration class with General configuration settings
'''
DEBUG = True
config_options = {
'development':DevConfig,
'production':ProdConfig,
'test':TestConfig
}