You are welcome! :) Alex /// On Thu, Mar 14, 2013 at 12:33 AM, VVilku <[email protected]> wrote: > Thanks a lot :) > You're right.I did not notice it. > > Working when add 'atest': > <form method="post" action="{% url 'atest:login1' %}"> > or > <form method="post" action="{% url 'atest:django.contrib.auth.views.login' > %}"> > or > when remove this namespace from project/urls.py. > > regargs > > > > W dniu środa, 13 marca 2013 20:46:41 UTC+1 użytkownik rudyryk napisał: >> >> Hi VVilku! >> >> It should work if you remove `namespace='atest'` from >> 'auth_project/urls.py'. >> >> >> regards, >> Alex >> /// >> >> On Wed, Mar 13, 2013 at 10:14 PM, VVilku <[email protected]> wrote: >> > No, I dont't. :) >> > The attachment in the first post it is my attempt to isolate the >> > problem. >> > (assumption "blog"=="atest") >> > >> > >> > >> > W dniu środa, 13 marca 2013 14:33:42 UTC+1 użytkownik VVilku napisał: >> >> >> >> 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 users" 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-users?hl=en. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" 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-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >
-- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

