-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
15,824 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 43d22ff0ebec04b511688f1162742617 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.. django_wechat documentation master file, created by | ||
sphinx-quickstart on Sat Apr 9 15:12:39 2016. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
|
||
django_wechat | ||
============= | ||
|
||
django_wechat 是一个基于django的微信基础模块,提供了微信的最基础接口功能. | ||
|
||
功能: | ||
----- | ||
|
||
- 关注回复(关键字为"关注") | ||
- 默认回复(关键字为"默认") | ||
- 文本回复 | ||
- 单图文回复 | ||
- 自定义菜单 | ||
|
||
使用方法: | ||
--------- | ||
|
||
安装依赖模块:: | ||
|
||
pip install xmltodict | ||
|
||
安装wechat:: | ||
|
||
pip install git+https://github.com/ChanMo/django_wechat.git | ||
|
||
把wechat模块添加到你的settings.py里面:: | ||
|
||
INSTALLED_APPS = ( | ||
... | ||
'wechat', | ||
... | ||
) | ||
|
||
|
||
在settings.py里面添加微信设置信息:: | ||
|
||
# wechat config | ||
WECHAT_APPID = 'test' | ||
WECHAT_APPSECRET = 'test' | ||
WECHAT_TOKEN = 'yourtoken' | ||
WECHAT_MCH_ID = 'test' | ||
WECHAT_KEY = 'test' | ||
WECHAT_JS_DEBUG = 'test' | ||
WECHAT_JS_APILIST = ['test'] | ||
|
||
在urls.py里面添加微信接口:: | ||
|
||
url(r'^wx/', include('wechat.urls')), | ||
|
||
添加数据表:: | ||
|
||
python manage.py migrate | ||
|
||
使用微信开发者模块:: | ||
|
||
接口地址为:http://yourdomain/wx/ | ||
token为: yourtoken | ||
|
||
|
||
api模块: | ||
-------- | ||
|
||
- Base | ||
- Menu | ||
- Push | ||
- Reponse | ||
- Member | ||
- Pay | ||
- Js | ||
- Qrcode | ||
|
||
|
||
开发者: | ||
------- | ||
|
||
- chanmo: http://www.findchen.com/ | ||
|
||
版本更改: | ||
--------- | ||
- v0.3 使js配置信息可编辑,添加Qrcode类 | ||
- v0.2 添加WxMemberView | ||
- v0.1 第一版 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Intro | ||
###### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
基于django的微信基础模块 | ||
======================== | ||
|
||
一个基于django的微信基础功能模块 | ||
|
||
快速开始: | ||
--------- | ||
|
||
安装依赖模块: | ||
|
||
.. code-block:: | ||
|
||
pip install xmltodict | ||
|
||
安装wechat: | ||
|
||
.. code-block:: | ||
|
||
pip install git+https://github.com/ChanMo/django_wechat.git | ||
|
||
把wechat模块添加到你的settings.py里面: | ||
|
||
.. code-block:: | ||
|
||
INSTALLED_APPS = ( | ||
... | ||
'wechat', | ||
... | ||
) | ||
|
||
在settings.py里面添加微信设置信息: | ||
|
||
.. code-block:: | ||
|
||
# wechat config | ||
WECHAT_APPID = 'test' | ||
WECHAT_APPSECRET = 'test' | ||
WECHAT_TOKEN = 'yourtoken' | ||
WECHAT_MCH_ID = 'test' | ||
WECHAT_KEY = 'test' | ||
WECHAT_JS_DEBUG = 'test' | ||
WECHAT_JS_APILIST = ['test'] | ||
|
||
在urls.py里面添加微信接口: | ||
|
||
.. code-block:: | ||
|
||
url(r'^wx/', include('wechat.urls')), | ||
|
||
添加数据表: | ||
|
||
.. code-block:: | ||
|
||
python manage.py migrate | ||
|
||
使用微信开发者模块: | ||
|
||
接口地址为:http://yourdomain/wx/ | ||
token为: yourtoken | ||
|
||
|
||
版本更改: | ||
--------- | ||
- v0.3 使js配置信息可编辑,添加Qrcode类 | ||
- v0.2 添加WxMemberView | ||
- v0.1 第一版 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.