2008/8/25 Ludwig <[EMAIL PROTECTED]>

> I am using the 1.0 beta 1 release.
>
> I think I am following the documentation, when I set
>
>     ('^accounts/login/(.*)', 'django.contrib.auth.views.login', {}),
>
> in my urls.py
>
> But then I get a TemplateDoesNotExist exception when opening
> /accounts/login.
>
> The template (standard registration/login.html) does exist, but somehow the
> template name gets lost in Django and it looks for an empty template name
> u''.
> Below is the relevant snippet from the error page:
>
[snip]

The snippet is a bit too abbreviated to be of use.  It would be better if
you selected the "Switch to copy-and-paste view" link and then the "Share
this traceback on a public web site" button to post the traceback to
dpaste.com and then post the link.


> If I set the template name explicitly, I get the error that the kw arg is
> doubly defined.
> (If in auth.views.login I set the template_name explictly to my template,
> overriding the empty string, it works, so my template is ok)
>
>
 You should be able to set the template name explicitly like so:

('^accounts/login/(.*)', 'django.contrib.auth.views.login',
{'template_name': 'path/login_template_name'}),

If that is what you tried and you got some error about a kwarg being doubly
defined that is rather mysterious.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to