-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.test.py
38 lines (31 loc) · 1.09 KB
/
settings.test.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
import os
DEBUG = True
HOST = '0.0.0.0'
PORT = 5000
# MongoDB connection settings
DATABASE = {
'db': 'neomad_test',
'username': 'root',
'host': 'localhost'
'password': '',
'port': int(os.environ.get('DB_PORT', 27017))
}
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
UPLOAD_PATH = '{}/static/uploads'.format(PROJECT_PATH)
AVATARS_PATH = '{}/avatars'.format(UPLOAD_PATH)
AVATARS_URL = '/static/uploads/avatars'
ARTICLE_IMG_PATH = '{}/articles'.format(UPLOAD_PATH)
ARTICLE_IMG_URL = '/static/uploads/articles'
DEBUG_TB_ENABLED = DEBUG
DEBUG_TB_PANELS = (
'flask_debugtoolbar.panels.versions.VersionDebugPanel',
'flask_debugtoolbar.panels.timer.TimerDebugPanel',
'flask_debugtoolbar.panels.headers.HeaderDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask_debugtoolbar.panels.template.TemplateDebugPanel',
'flask_debugtoolbar.panels.logger.LoggingPanel',
'flask_debugtoolbar.panels.route_list.RouteListDebugPanel',
'flask_mongoengine.panels.MongoDebugPanel',
)
DEBUG_TB_INTERCEPT_REDIRECTS = False
SECRET_KEY = 'mysecretkey'