Web.py -AttributeError: 'module' object has no attribute 'ge,,code.pyclass


code.py

class Account:    def GET(self,name):            account_info = model.get_list_info(name)            return render.account(name,account_info)

model.py

def get_list_info(name):    return db.select('essay',what="essay_name,essay_date,essay_url",where="account_id = $name")

错误提示:accountinfo = model.getlist_info(name), referer: http://127.0.0.1/AttributeError: 'module' object has no attribute 'get _list _info', referer: http://127.0.0.1/

get_ list_info换了好几个名称,排除了命名冲突的原因,,找了半天实在找不出错在哪里,请大家帮忙看下

编橙之家文章,

评论关闭