Re: Empty template_name for login

2008-08-26 Thread Ludwig
Well spotted, that was it. Not sure where I got the (.*) from, it is certainly not in the documentation. Thanks Ludwig 2008/8/26 Karen Tracey <[EMAIL PROTECTED]> > On Tue, Aug 26, 2008 at 7:21 AM, Ludwig <[EMAIL PROTECTED]>wrote: > >> >> ('^accounts/login/(.*)',

Re: Empty template_name for login

2008-08-26 Thread Karen Tracey
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': '/'}),

Re: Empty template_name for login

2008-08-26 Thread Ludwig
Apologies for subjecting people to my debugging effort, but I have now tried to replicate the problem with a minimal installation. I create a new project with django-admin.py, and simply edit the database settings to fit my DB, then run syncdb. Then I create a minimal urls.py like this: from

Re: Empty template_name for login

2008-08-26 Thread Ludwig
I just tried the same with a fresh installation from SVN trunk and get the same error. 2008/8/26 Ludwig <[EMAIL PROTECTED]> > Try again: > > If I do this in urls.py > > ... > ('^accounts/login/(.*)', 'django.contrib.auth.views.login'), > ... > > I get TemplateDoesNotExist exception, because

Re: Empty template_name for login

2008-08-26 Thread Ludwig
Try again: If I do this in urls.py ... ('^accounts/login/(.*)', 'django.contrib.auth.views.login'), ... I get TemplateDoesNotExist exception, because the template parameter is empty. The full snippet is http://dpaste.com/73893/ The template name is empty already at the callback (line 33) -

Re: Empty template_name for login

2008-08-25 Thread Karen Tracey
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 >

Empty template_name for login

2008-08-25 Thread Ludwig
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