-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathconfig.py
39 lines (27 loc) · 752 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
from decouple import config
UPLOAD_PATH = os.path.join(os.getcwd(), 'media', 'uploads')
class Config(object):
SECRET_KEY = config('SECRET_KEY') or 'guess-me'
UPLOAD_FOLDER = UPLOAD_PATH
DEBUG = False
TESTING = False
CSRF_ENABLED = True
# EMAIL SETTINGS
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_DEBUG = True
MAIL_USERNAME = config("EMAIL_ADDRESS")
MAIL_PASSWORD = config("EMAIL_PASSWORD")
class ProductionConfig(Config):
DEBUG = False
MAIL_DEBUG = False
class StagingConfig(Config):
DEVELOPMENT = True
DEBUG = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
class TestingConfig(Config):
TESTING = True