On Sat, Nov 24, 2012 at 7:10 PM, James Pic <james...@gmail.com> wrote:

> Hello everybody,
>
> Thank you for your feedback. And pretty soon I will tackle this problem in
> an external app - or consider joining the party if somebody else has
> started, in this case feel free to let me know.
>
> I can understand most of the points made here, expect just one, please
> bare with me. Several hackers on this list stated that it has "obviously
> not its place in Django". I don't understand why generic non ajax views
> would have a their place in django, and ootb ajax support would not. But
> I'm really curious.
>
> It would be great if someone could elaborate on that, because from what I
> understand:
>
> - django has generic views, you are free to use them, you can use your
> own, or you can use those that are provided by external apps,
> - if django had generic views with ajax support, you would be free to use
> the ajax support, or use your own, or use those that are provided by
> external apps.
>
> I just fail to see the difference, it would be great if someone could
> explain that !
>
>
It's because generic views produces HTML that is pretty much standard
across the different browsers. There is no magic involved there. But there
is no standard that what ajax response should look like. Or actually that
acronym includes word XML.

For JS most of us does use some JS framework like jQuery, Dojo toolkit,
Mootools, ExtJS, just few to name. All of those like to have slightly
different responses. See the pattern?

There exists also few nice additional frameworks like Tastypie or Rest
framework that does excellent job to bring powerful tools that can talk
restful services - and those are quite suitable for ajax consumption. Some
of the frameworks even does have somekind of implementation to use them
directly.

-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to