Hello,
I have problem with:
Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found.
Request Method: GET
Request URL:
http://www.django-phpbb.pl:8000/blog/accounts/login/Django Version: 1.5
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found.
blog/urls.py:
urlpatterns = patterns('',
url(r'^accounts/login/$', 'django.contrib.auth.views.login', name='login1'),
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
)
blog/templates/registration/login.html:
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
I try without quotes, but I receive another error (I know, in django 1.5 are a some changes in url tag):
'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs.
I tried to use only name ("login" -> {% url 'login1' %} and {% url 'login1' %} ). Also, it does not work.
(Reverse for 'login1' with arguments '()' and keyword arguments '{}' not found.)
Any suggestions?
regards,
VVilku