I feel like FBV vs CBV is partially a matter of taste. If your app is AJAX-heavy though, why not use one of the proper API frameworks like http://django-rest-framework.org/ or http://django-tastypie.readthedocs.org/en/latest/ ?
On Thu, Aug 29, 2013 at 12:51 AM, Sarthak Dev <sarthak....@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<https://docs.djangoproject.com/en/dev/topics/class-based-views/mixins/#more-than-just-html> > for > it, but haven't figured out if using them and CBVs will help in any way. > > Anyone? > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > -- Jonathan D. Baker Developer http://jonathandbaker.com -- 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. For more options, visit https://groups.google.com/groups/opt_out.