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

2013-08-29 Thread Lee Hinde
On Wed, Aug 28, 2013 at 11:51 PM, Sarthak Dev 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

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

2013-08-29 Thread Jonathan Baker
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 wrote: > I'm working o

AJAX - Class Based View or Function Based View?

2013-08-29 Thread Sarthak Dev
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