Web.py -AttributeError: 'module' object has no attribute 'ge,,code.pyclass
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换了好几个名称,排除了命名冲突的原因,,找了半天实在找不出错在哪里,请大家帮忙看下
编橙之家文章,
相关内容
- django:在打开admin页面的时候出错了(其它页面能正常
- Python3 在使用traceback.format_exc()的时候遇到 UnicodeDecodeE
- Django 中创建怎么创建不了not null default 0 这样的字段?,
- 关于大并发在线实时图像处理的解决方案,实时图像处
- 关于Tornado的asyncHttpClient的问题,asynchttpclient,想用asyn
- 哪里有错误?,有错误?,while True:
- uwsgi如何配置启动参数, 使并发数尽可能高?,uwsgi参数
- flask jinjia2 {% include "aa.html" %}出现jinja2.exceptions.Te,
- Django: ModelForm中Meta的fields成员有什么作用?,djangomodel
- 七牛 Python SDK 使用了 urlsafe_b64encode() 导致上传中文文件
评论关闭