On Tue, Aug 26, 2008 at 7:21 AM, Ludwig <[EMAIL PROTECTED]> wrote:
>
> ('^accounts/login/(.*)', 'django.contrib.auth.views.login'),
> ('^accounts/profile/(.*)', 'django.contrib.auth.views.profile'),
> ('^accounts/logout/(.*)', 'django.contrib.auth.views.logout',
> {'next_page': '/'}),
>
OK, I see what the problem is now. You've specified these urlpatterns to
capture a parameter at the end. So anything that follows the trailing slash
of 'login' (in your case, an empty string) will be passed as the first
parameter (template_name) to login. If you try to go to
'accounts/login/xyzzy/', e.g. you will see that the template name it looks
for will be 'xyzzy'. You need to removethe '(.*)' on the end of all these
urlpatterns.
Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---