Re: Generic Views and Django.contrib.auth

2014-12-04 Thread Rootz
Thanks . It work using both the name and namespaces. On Thursday, December 4, 2014 8:45:27 AM UTC-5, Collin Anderson wrote: > > Hi, > > Not sure about namespaces, but you can certainly use name: > > urlpatterns = patterns('', > url(r'^about/', login_required(AboutView.as_view()), name='about')

Re: Generic Views and Django.contrib.auth

2014-12-04 Thread Collin Anderson
Hi, Not sure about namespaces, but you can certainly use name: urlpatterns = patterns('', url(r'^about/', login_required(AboutView.as_view()), name='about'), ) Or better yet, patterns() is deprecated so: urlpatterns = [ url(r'^about/', login_required(AboutView.as_view()), name='about'),

Re: Generic Views and Django.contrib.auth

2014-12-03 Thread Rootz
URL Reversing the view where login is required. On Tuesday, December 2, 2014 10:05:35 PM UTC-5, Collin Anderson wrote: > > Hi, > > It's probably possible. Do you mean url reversing the login view, or url > reversing the view where login is required? > > Collin > > On Sunday, November 30, 2014 11:

Re: Generic Views and Django.contrib.auth

2014-12-03 Thread Rootz
Yes On Tuesday, December 2, 2014 10:05:35 PM UTC-5, Collin Anderson wrote: > > Hi, > > It's probably possible. Do you mean url reversing the login view, or url > reversing the view where login is required? > > Collin > > On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote: >> >> Hi can th

Re: Generic Views and Django.contrib.auth

2014-12-03 Thread Marcus Cl
yes On Tue, Dec 2, 2014 at 10:05 PM, Collin Anderson wrote: > Hi, > > It's probably possible. Do you mean url reversing the login view, or url > reversing the view where login is required? > > Collin > > On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote: >> >> Hi can this work with url

Re: Generic Views and Django.contrib.auth

2014-12-02 Thread Collin Anderson
Hi, It's probably possible. Do you mean url reversing the login view, or url reversing the view where login is required? Collin On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote: > > Hi can this work with url reversing namespaced urls? > thanks > > On Thursday, October 16, 2014 11:54:

Re: Generic Views and Django.contrib.auth

2014-11-30 Thread Rootz
Hi can this work with url reversing namespaced urls? thanks On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote: > > If you are usign class based generic views you can use the decorators in > the URL config of your app, for example > > urlpatterns = patterns('', > (r'^about/

Re: Generic Views and Django.contrib.auth

2014-10-19 Thread Rootz
Thanks. On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote: > > If you are usign class based generic views you can use the decorators in > the URL config of your app, for example > > urlpatterns = patterns('', > (r'^about/', login_required(AboutView.as_view())), > ) > > > O

Re: Generic Views and Django.contrib.auth

2014-10-16 Thread Vijay Khemlani
If you are usign class based generic views you can use the decorators in the URL config of your app, for example urlpatterns = patterns('', (r'^about/', login_required(AboutView.as_view())), ) On Thu, Oct 16, 2014 at 12:49 PM, Rootz wrote: > Can I use both Generic View and the Django.contr