Skip to content

Commit 7573a65

Browse files
committed
Merge pull request #45 from dongweiming/comment
给settings参数加注释
2 parents cd1d12b + 1b864de commit 7573a65

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

slack_bot/settings.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
# coding=utf-8
22

3+
# debug模式主要用在gunicorn启动的时候可能看到错误堆栈
34
DEBUG = True
45
SECRET_KEY = 'o\xdd\x02I\x0b\xbbBP4\x97\xab\xe0GF\xfba\x14_\x03\xa9\xe8\xfa\xf8c' # noqa
56

7+
# clask chat token 注册地址: https://api.slack.com/web
68
SLACK_CHAT_TOKEN = 'xoxp-4231087425-4231087427-4463321974-03a74a'
9+
# 你希望slack的outgoing-webhook调用你的回调的路由
710
SLACK_CALLBACK = '/slack_callback'
8-
REDIS_URL = 'redis://:password@localhost:6379/0'
11+
# 使用Github-issue插件需要指定组织的地址
912
ORG_NAME = 'python-cn'
13+
# 百度地图api key, 注册地址: http://lbsyun.baidu.com/apiconsole/key
1014
BAIDU_AK = '18691b8e4206238f331ad2e1ca88357e'
15+
# simsim key, 注册地址: http://developer.simsimi.com/
1116
SIMSIMI_KEY = '50c086cb-5ea3-4190-bdd6-69787a540ec4'
17+
# 大众点评应用, 注册地址: http://developer.dianping.com/dashboard/info/app
1218
DIANPING_APPKEY = '41502445'
1319
DIANPING_SECRET = 'f0c2cc0b4f1048bebffc1527acbaeeb8'
1420

21+
# Flask-cache的类型, 默认为SimpleCache
1522
CACHE_TYPE = 'simple'
23+
# 假如使用RedisCache, 也就是CACHE_TYPE = 'redis'需要配置CACHE_REDIS_URL
24+
CACHE_REDIS_URL = 'redis://user:password@localhost:6379/0'
1625

26+
# 使用`python manage.py send`时候的模拟数据
1727
TEST_DATA = {
1828
'token': 'jLGMzrZn3P1lS2sD848KpPuN',
1929
'text': 'text',

0 commit comments

Comments
 (0)