Thursday, August 29, 2013

Re: AJAX - Class Based View or Function Based View?

On Wed, Aug 28, 2013 at 11:51 PM, Sarthak Dev <sarthak.dev@contentflow.in> wrote:
I'm working on an app which uses a lot of AJAX requests. Having previously used FBVs for handling ajax and returning JSON, how efficient will it be to use a CBV for the same? I read the django docs and found mixins for it, but haven't figured out if using them and CBVs will help in any way.

Anyone?   

If you decide on CBV, there's also django-braces which has some ajax helpers.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment