Re: how to use named urls from apps

2012-11-30 Thread Chris Cogdon
And, don't forget, the form is: {% load url from future %} {% url 'auth_login' %} OR {% url auth_login %} The former is highly recommend, as the latter is deprecated and will become the default in a future Django release. If you ever get messages such as "view not found for reverse"... this

Re: how to use named urls from apps

2012-11-29 Thread Mike
> > > Named urls are URLs defined in your urlconf that have named views. The > contrib auth app, although it provides a bunch of views, does not > automatically install any of them at any URLs, hence this would fail. > > If you include the login view in one of your urlconfs, it will not >

Re: how to use named urls from apps

2012-11-29 Thread Tom Evans
On Thu, Nov 29, 2012 at 2:32 PM, Mike wrote: > I'm trying to use the url template tag to call the login view from > contrib.auth. I've tried the following but none work: > > {% url login %} > {% url auth:login %} > {% url auth.login %} > {% url contrib.auth.login %} > > Can

Re: how to use named urls from apps

2012-11-29 Thread Paul Backhouse
Try {% url 'auth_login' %} That works for me in Django 1.4 On Thu, 2012-11-29 at 06:32 -0800, Mike wrote: > I'm trying to use the url template tag to call the login view from > contrib.auth. I've tried the following but none work: > > > {% url login %} > {% url auth:login %} > {% url

how to use named urls from apps

2012-11-29 Thread Mike
I'm trying to use the url template tag to call the login view from contrib.auth. I've tried the following but none work: {% url login %} {% url auth:login %} {% url auth.login %} {% url contrib.auth.login %} Can someone enlighten me please? Mike -- You received this message because you are