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
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.