forked from gislite/maplet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_demo.py
53 lines (38 loc) · 993 Bytes
/
config_demo.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
# -*- coding:utf-8 -*-
# __author__ = 'bk'
import socket
import peewee
def hostname():
return (socket.gethostname())
menu_arr = [['首页', '/'],
['文档', '/category/geography'],
['云算', '/calc/find'],
['专题', '/spec/'],
]
page_num = 16
# 使用DataBase的不同形式,以应对Peewe针对数据库的不同语法
# 1 for SQLite
# 2 for MySQL
# 3 for PostgreSQL
dbtype = 1
app_url_name = 'map'
wcs_svr = '121.42.29.253'
# wcs_svr = '192.168.4.166'
site_config = {
'page_num': 16,
'site_url': 'http://maplet.osgeo.cn',
'dbtype': 2,
'cookie_secret': 'l98sdalfkj',
}
smtp_cfg = {
'host': "smtp.ym.163.com",
'user': 'ad',
'pass': 'asdff',
'postfix': 'yunsuan.org',
}
Email_site_name = 'Maplet'
cookie_secret = "61oETzKekL5gEmGdTP1oVo="
dbconnect = peewee.SqliteDatabase('./database/maplet.sqlite')
site_url = 'http://maplet.osgeo.cn'
torlite_template_name = 'tplite'
app_template_name = 'app_theme'