-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py
37 lines (27 loc) · 858 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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
# Flask
SECRET_KEY = '123456790'
# cross-site request forgery prevention
CSRF_ENABLED = True
# Database
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
# Flask-Mail
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = None
MAIL_PASSWORD = None
MAIL_DEFAULT_SENDER = None
# Flask-Security
SECURITY_PASSWORD_HASH = 'bcrypt'
SECURITY_PASSWORD_SALT = '123456'
SECURITY_REGISTERABLE = True
USER_ENABLE_USERNAME = False
USER_ENABLE_CHANGE_USERNAME = False
USER_ENABLE_EMAIL = True
USER_ENABLE_CONFIRM_EMAIL = False
USER_ENABLE_CHANGE_PASSWORD = True
USER_ENABLE_FORGOT_PASSWORD = True
configuration = __name__ + '.Config'