首先先获取access_token,并保存与全局之中
def token(requset):
url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s' % (
Config.AppID, Config.AppSecret)
result = urllib2.urlopen(url).read()
Config.access_token = json.loads(result).get('access_token')
print 'acce