Sunday, November 30, 2014

Re: Generic Views and Django.contrib.auth

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.
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+unsubscribe@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/688a1152-690e-41a9-91e1-72cf0f21b631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment