Skip to main content

A simple wechat api model.

Project description

Documentation Status

一个基于django的微信基础功能模块

快速开始:

安装wechat:

pip install django-wechat-base

把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

版本更改:

  • v0.3 使js配置信息可编辑,添加Qrcode类
  • v0.2 添加WxMemberView
  • v0.1 第一版

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-wechat-base, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size django_wechat_base-0.4.1-py2-none-any.whl (12.4 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-wechat-base-0.4.1.tar.gz (1.7 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page