Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django NoReverseMatch at/accounts/register/_Django_Django Registration - Fatal编程技术网

Django NoReverseMatch at/accounts/register/

Django NoReverseMatch at/accounts/register/,django,django-registration,Django,Django Registration,我正在遵循Django注册的入门指南,访问时出现以下错误http://localhost:8080/accounts/register/ : 有什么想法吗?您需要的信息在您提供的回溯中 在template/Users/Studio/Desktop/pod/t1/tut/tut/templates/base.html中,第16行出现错误 找不到参数和关键字参数“{}”的“索引”的反转 在base.html模板的第16行,您使用url标记链接到名为“index”的视图 16 <a h

我正在遵循Django注册的入门指南,访问时出现以下错误http://localhost:8080/accounts/register/ :


有什么想法吗?

您需要的信息在您提供的回溯中

在template/Users/Studio/Desktop/pod/t1/tut/tut/templates/base.html中,第16行出现错误 找不到参数和关键字参数“{}”的“索引”的反转

在base.html模板的第16行,您使用url标记链接到名为“index”的视图

16      <a href="{% url 'index' %}">{% trans "Home" %}</a> |

或者,您可以从模板中删除{%url'索引“%”,直到添加索引视图。

您需要的信息在您提供的回溯中

在template/Users/Studio/Desktop/pod/t1/tut/tut/templates/base.html中,第16行出现错误 找不到参数和关键字参数“{}”的“索引”的反转

在base.html模板的第16行,您使用url标记链接到名为“index”的视图

16      <a href="{% url 'index' %}">{% trans "Home" %}</a> |
或者,您可以从模板中删除{%url'索引'%},直到添加索引视图。

将urlr'^',包括'django.contrib.auth.url'到url模式

将urlr'^',包括'django.contrib.auth.url'到url模式

16      <a href="{% url 'index' %}">{% trans "Home" %}</a> |
url(r'^$', 'tut.views.index', name='index'),