NoReverseMatch at /polls/2/vote/ 'polls' is not a registered namespace
来源:互联网 发布:网络棋牌判刑 编辑:程序博客网 时间:2024/05/17 03:43
转自:http://blog.objcc.com/noreversematch-namespace/
Django模板语言中的url命令可通过使用命名空间语法防止url名称的重复,例如:
不过使用不正确时会出现如下问题:
解决的方法是在urls.py中使用include时加上namespace属性,将namesapce名字完成注册,如本例中要注册的命名空间是’poll’:
获取更多干货请关注微信公号’python-django’及新浪微博
0 0
- NoReverseMatch at /polls/2/vote/ 'polls' is not a registered namespace
- [Django]跟着文档学Django-part4报错'polls' is not a registered namespace
- django报错: NoReverseMatch at / 'devops' is not a registered namespace
- raise NoReverseMatch("%s is not a registered namespace" % key)
- ImportError at /polls cannot import name patterns
- NoReverseMatch at /blog/ Reverse for 'blog.views.blogpost' not found. 'blog.views.blogpost' is not a
- Django-part6-app's style-polls/static/polls/sytle.css
- 'my_templatetag' is not a registered tag library.
- is not a class or namespace name
- is not a member of global namespace
- is not a class or namespace name
- uri is not registered
- URI Is Not Registered
- uri is not registered
- URI is NOT Registered
- URI Is Not Registered
- django NoReverseMatch at /xxx
- Android URI is not registered
- Git配置和使用(SSH配置)
- SQL Server: Get table primary key and Foreign Key using sql query
- spring学习历程 之 事件(二)
- 编译原理学习笔记之词法分析
- 免费实用的jpg转换成pdf工具
- NoReverseMatch at /polls/2/vote/ 'polls' is not a registered namespace
- 程序员经典面试题之——数组指针与指针数组
- [Android]Native Crash at vdc
- HTTP请求的基本过程
- DelayQueue
- 递归低效以及java.lang.StackOverflowError原因
- Fragment初学1——Fragment简介
- 揭秘Apache顶级项目大数据分析引擎 Flink:与Spark的对比与分析
- Play 2.0 用户指南 - 使用JSON库 -- 针对Scala开发者