Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (72 sloc) 1.88 KB
# -*- 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",
},
)