-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
49 lines (31 loc) · 936 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
40
41
42
43
44
45
46
47
48
49
import os
from os import environ
class Config(object):
DEBUG = False
TESTING = False
basedir = os.path.abspath(os.path.dirname(__file__))
SECRET_KEY = 'pianalytix'
DB_NAME = "production-db"
DB_USERNAME = "root"
DB_PASSWORD = "pianalytix"
UPLOADS = "/home/username/app/app/static/uploads"
SESSION_COOKIE_SECURE = True
DEFAULT_THEME = None
class ProductionConfig(Config):
pass
class DevelopmentConfig(Config):
DEBUG = True
DB_NAME = "production-db"
DB_USERNAME = "root"
DB_PASSWORD = "pianalytix"
UPLOADS = "/home/username/app/app/static/uploads"
SESSION_COOKIE_SECURE = False
class TestingConfig(Config):
DEBUG = True
DB_NAME = "production-db"
DB_USERNAME = "root"
DB_PASSWORD = "pianalytix"
UPLOADS = "/home/username/app/app/static/uploads"
SESSION_COOKIE_SECURE = False
class DebugConfig(Config):
DEBUG = False