-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
40 lines (32 loc) · 1.02 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
"""configs of the music logger, to change which config is loaded(Production, Staging, Development) go to music_logger.py
and change the class in the app.config.from_object()"""
class Config(object):
DEBUG = False
TESTING = False
SECRET_KEY = "secret?"
DB_USER = 'root'
DB_PASSWORD = ''
DB_HOST = ''
DB_NAME = 'music_logger'
SQLALCHEMY_DATABASE_URI = 'mysql://' + DB_USER + ':' + DB_PASSWORD + '@' + DB_HOST + '/' + DB_NAME
SQLALCHEMY_TRACK_MODIFICATIONS = False
class Production(Config):
DB_USER = ''
DB_PASSWORD = ''
DB_HOST = ''
DB_NAME = ''
class Staging(Config):
DB_USER = ''
DB_PASSWORD = ''
DB_HOST = ''
DB_NAME = ''
TESTING = True
class Development(Config):
TESTING = True
DEBUG = True
DB_USER = 'root'
DB_HOST = 'localhost'
DB_NAME = 'music_logger'
DB_PASSWORD = 'Ax^2+Bx+C=y'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://' + DB_USER + ':' + DB_PASSWORD + '@' + DB_HOST + '/' + DB_NAME