-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathcfg_demo.py
More file actions
executable file
·45 lines (38 loc) · 833 Bytes
/
cfg_demo.py
File metadata and controls
executable file
·45 lines (38 loc) · 833 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
35
36
37
38
39
40
41
42
43
44
45
# -*- coding:utf-8 -*-
"""
User defined Configuration for the application.
"""
# Used by Django
DB_INFO = {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'torcms',
'USER': 'torcms',
'PASSWORD': '111111',
'HOST': '127.0.0.1',
'CONN_MAX_AzGE': 7200,
}
DB_CFG = {
'host': DB_INFO['HOST'],
'db': DB_INFO['NAME'],
'user': DB_INFO['USER'],
'pass': DB_INFO['PASSWORD'],
}
REDIS_CFG = {'host': '', 'port': '', 'pass': ''}
SMTP_CFG = {
'name': 'TorCMS',
'host': 'smtp.ym.163.com',
'user': 'admin@yunsuan.org',
'pass': '',
'postfix': 'yunsuan.org',
}
SITE_CFG = {
'site_url': 'http://127.0.0.1:8888',
'cookie_secret': '123456',
'DEBUG': False,
}
ROLE_CFG = {
'add': '1000',
'edit': '2000',
'delete': '3000',
'check': '0001', # 审核权限
}