-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (19 loc) · 687 Bytes
/
config.py
File metadata and controls
30 lines (19 loc) · 687 Bytes
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
# based on - https://realpython.com/blog/python/flask-by-example-part-1-project-setup/
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = 'this-really-needs-to-be-changed'
DB_CONNECTION_STRING = 'mongodb://<dbuser>:<dbpassword>@ds061767.mongolab.com:61767/heroku_app35710471'
class ProductionConfig(Config):
DEBUG = False
DB_CONNECTION_STRING = 'somewhere in heroku :)'
class StagingConfig(Config):
DEVELOPMENT = True
DEBUG = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
DB_CONNECTION_STRING = 'mongodb://localhost/mydb'
class TestingConfig(Config):
TESTING = True