module 'sign.views' has no attribute 'search_name'
生活随笔
收集整理的這篇文章主要介紹了
module 'sign.views' has no attribute 'search_name'
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
百度找到如下鏈接
http://lovesoo.org/python-script-error-attributeerror-module-object-has-no-attribute-solve-method.html
sign.views文件下沒有定義這個函數(shù)
# 發(fā)布會名稱搜索 @login_required def search_name(request):username = request.session.get('username', '')search_name = request.GET.get("name", "")search_name_bytes = search_name.encode(encoding="utf-8")event_list = Event.objects.filter(name__contains=search_name_bytes)return render(request, "event_manage.html", {"user": username, "events": event_list})?
轉載于:https://www.cnblogs.com/mrwuzs/p/7985496.html
總結
以上是生活随笔為你收集整理的module 'sign.views' has no attribute 'search_name'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 史上最大规模高校分析技术大赛是如何诞生的
- 下一篇: [大数据之Yarn]——资源调度浅学