In my settings I have set: LOGIN_URL = '/accounts/login/'
Now if I run ./manage shell and type: In [3]: reverse('django.contrib.auth.views.login') Out[3]: '/accounts/login/' which is ok. However, when I run one of the tests from django.contrib.auth: def test_current_site_in_context_after_login(self): response = self.client.get(reverse('django.contrib.auth.views.login')) self.assertEquals(response.status_code, 200) site = Site.objects.get_current() self.assertEquals(response.context['site'], site) self.assertEquals(response.context['site_name'], site.name) self.assert_(isinstance(response.context['form'], AuthenticationForm), 'Login form is not an AuthenticationForm') reverse('django.contrib.auth.views.login') returns /login/. Why is that? Is that a bug and I should file it in the issue tracker or maybe I am doing something wrong? -- Filip Gruszczyński -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.