forked from plastboks/Flaskmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py.example
More file actions
34 lines (30 loc) · 738 Bytes
/
config.py.example
File metadata and controls
34 lines (30 loc) · 738 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
30
31
32
33
34
import os
basedir = os.path.abspath(os.path.dirname(__file__))
"""
Site settings
"""
SITE_TITLE = 'Flaskmarks'
SITE_FOOTER = 'Flaskmark awesome bookmark and feed app'
CAN_REGISTER = True
"""
Database settings.
"""
# SQLiTE
SQLALCHEMY_DATABASE_URI = os.environ.get(
'DATABASE_URL',
'sqlite:///' + os.path.join(basedir, 'flaskmarks.sqlite')
)
# MySQL
# SQLALCHEMY_DATABASE_URI = 'mysql://username:password@server/db'
# PostgreSQL
# SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@server/db'
"""
Keys
"""
CSRF_ENABLED = True
SECRET_KEY = os.environ.get('FLASK_SECRET_KEY', 'super-duper-secret-key-CHANGE-ME')
"""
Debugging
"""
DEBUG_MODE = os.environ.get('FLASK_DEBUG', '0') == '1'
DEBUG_TB_INTERCEPT_REDIRECTS = False