-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
39 lines (32 loc) · 937 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
38
39
"""
The file containing all configuration needed in tha flask application, including the database, mail, APScheduler.
All the configuration will be imported by the flask application.
"""
# sqlite config
SQLALCHEMY_DATABASE_URI = 'sqlite:///./database/TodoList.sqlite3'
# Prohibit data modification tracking
SQLALCHEMY_TRACK_MODIFICATIONS = True
# Secret key
SECRET_KEY = 'averysimplekey'
# mail config
MAIL_SERVER = "smtp.qq.com"
MAIL_PORT = 465
MAIL_USE_TLS = False
MAIL_USE_SSL = True
MAIL_DEBUG = True
MAIL_USERNAME = "1510397456@qq.com"
MAIL_PASSWORD = "vqcwrrixwonwfhgi"
MAIL_DEFAULT_SENDER = "1510397456@qq.com"
# reminder config
class remindConfig(object):
JOBS = [
{
'id': 'reminder',
'func': 'app:taskReminder',
'args': None,
'trigger': 'interval',
'seconds': 2,
'replace_existing': True
}
]
SCHEDULER_API_ENABLED = True