遇到个诡异的问题,不知道是不是BUG

9 views
Skip to first unread message

gue

unread,
May 9, 2015, 12:05:11 AM5/9/15
to sae-p...@googlegroups.com
一个django 1.8写的微信应用, 在群发消息的时候出错, 说是函数的参数数量不对. 用django自带的开发服务器运行是没有问题的, 但用sae的开发服务器运行就报错, 这个杂解呀. 只给了4个参数, 老是提示给了5个. 

ps: send_mas_article的原型:
 send_mass_article(self, group_or_users, media_id, is_to_all=False, preview=False)

TypeError at /wx/publish/subscribe_kcyy/

send_mass_article() takes exactly 3 arguments (5 given)

  1.     #         }
  2.     #     ])
  3.     return wx.message.send_mass_article(
  4.         "o_vr0jk-IAJHkTWeQjQWkbjUG3xY",
  5.         "AJGzN71cURx5BEx_WMFp-IPTCJrmLA86lDiyzpFYYcBD7nGFG_2k4GFPdcF4TIrW",
  6.         False,
  1.                     True)
    ...
  1. def publish(request, wechat_app):
  2.     app_id = settings.WX_APP_ID.get(wechat_app)

gue

unread,
May 9, 2015, 1:41:41 AM5/9/15
to sae-p...@googlegroups.com
失误, 不好意思, 问题是因为引用到的virtualenv.bundle里有bug的版本, 删除virtualenv.bundle 就好了, 用 sae 的开发服务器会增加对这个目录 的引用.

gue <gue...@gmail.com>于2015年5月9日周六 下午12:05写道:
Reply all
Reply to author
Forward
0 new messages