forked from wizardcypress/argon
-
Notifications
You must be signed in to change notification settings - Fork 8
/
argo_conf.py
84 lines (72 loc) · 1.88 KB
/
argo_conf.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
argo 的全局配置文件
'''
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
SQL_DIR = os.path.join(BASE_DIR, 'database/')
#######################
# Database Configure ##
#######################
DB_HOST = 'localhost'
DB_PORT = 3306
DB_USER = 'bbs'
DB_PASSWD = 'forargo'
DB_NAME = 'argo'
BASE_TABLE = [ 'attachead','boardhead','sectionhead','user','userattr',
'annhead', 'filehead_junk', 'undenylist', 'denylist',
'mailhead', 'filehead']
###################
# Redis Configure #
###################
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
class ConfigTestDate:
'''
Setting of section.
May be remove.
'''
section = (
("BBS 系统","[站务] [意见]"),
("校园社团","[校园] [社团]"),
("院系交流","[院系] [交流]"),
("电脑科技","[电脑] [系统]"),
("休闲娱乐","[休闲] [娱乐]"),
("文化艺术","[文化] [艺术]"),
("学术科学","[学术] [科学]"),
("谈天说地","[闲聊] [感悟]"),
("社会信息","[信息] [招聘]"),
("体育健身","[体育] [运动]")
)
board = (
{
"sid":3,
"boardname":"Test1",
"description":"for test1",
"bm":"111",
},
{
"sid":3,
"boardname":"Test2",
"description":"for test2",
"bm":"222",
},
{
"sid":3,
"boardname":"Test3",
"description":"for test3",
"bm":"333",
},
{
"sid":3,
"boardname":"Test4",
"description":"for test4",
"bm":"444",
},
{
"sid":4,
"boardname":"Sys",
"description":"for sys",
},
)