Thank you - that helps!
On Tuesday, May 27, 2014 3:14:06 PM UTC-7, WongoBongo wrote:
>
> I'd recommend removing the login_required checks from the views. Put them
> in the UrlConf instead:
>
> from django.contrib.auth.decorators import login_required
>
> from yourapp.views import MyListsView
>
>
I'd recommend removing the login_required checks from the views. Put them
in the UrlConf instead:
from django.contrib.auth.decorators import login_required
from yourapp.views import MyListsView
urlpatterns = patterns('',
url(r'^$', login_required(MyListsView.as_view()), name='yourapp_list')
2 matches
Mail list logo