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'), > ) > > Or better yet, patterns() is deprecated so: > > urlpatterns = [ > url(r'^about/', login_required(AboutView.as_view()), name='about'), > ] > > Collin > > On Wednesday, December 3, 2014 10:13:24 AM UTC-5, Rootz wrote: >> >> 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:07:42 PM UTC-5, Rootz wrote: >>>> >>>> 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/', login_required(AboutView.as_view())), >>>>> ) >>>>> >>>>> >>>>> On Thu, Oct 16, 2014 at 12:49 PM, Rootz <arc4...@gmail.com> wrote: >>>>> >>>>>> Can I use both Generic View and the Django.contrib.auth features >>>>>> (such as login_required decorator and other auth interface tool)? And if >>>>>> it >>>>>> is not possible to integrate auth into Generic Views then can you >>>>>> recommend >>>>>> alternative way of making the two work together? Adding to this I am >>>>>> using >>>>>> Django 1.7v and python 3.4v. >>>>>> >>>>>> Thank you >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Django users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to django-users...@googlegroups.com. >>>>>> To post to this group, send email to django...@googlegroups.com. >>>>>> Visit this group at http://groups.google.com/group/django-users. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/django-users/09fe215a-4572-418c-959f-567e9ab05b0b%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/django-users/09fe215a-4572-418c-959f-567e9ab05b0b%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>>
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9888440b-f10a-4474-bb37-595e612b3310%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.