Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Dajax: An easy to use ajax library for Django (code.google.com)
26 points by mace on May 20, 2009 | hide | past | favorite | 7 comments


Maybe this is a dumb question, but why do we need AJAX libraries? The methods in current JavaScript frameworks like Prototype, jQuery, et. al. make AJAX dead simple to begin with.


It is more of an Ajax framework than library. It allows you to write Python code in your Django apps to support Ajax requests. On the client-side, requests are made through a wrapper which can use the Prototype or jQuery JS libraries.

I believe it is closer to Pyjamas (http://code.google.com/p/pyjamas/) than jQuery.


well, this is the first I've heard of this project. But looking at the example from the link, it has taken a lot of the wheel that everyone has to make when using [js framework of choice] for ajax and packaged it nicely to let you get on with the important parts of your project.


There be dragons in the Python: http://code.google.com/p/dajaxproject/source/browse/trunk/da...

If all that importing is really necessary then you might want to check out Django's new preferred import method, importlib, it might clean that up a bit: http://code.djangoproject.com/ticket/8193

And here in the J/S - lots of evals - is that really necessary?: http://code.google.com/p/dajaxproject/source/browse/trunk/da...


That's ugly to say the least... You're way better sticking with something like jQuery.


It is unfair at the least to compare this to jQuery. This library attempts to bridge the gap between jQuery and Django for AJAX calls by being in between.

If you mean you are better sticking with raw Django views and jQuery AJAX calls, that could be true.

I was planning on writing a few helper functions for this myself as a lot of my AJAX work is getting repetitive and could be refactored, so I will at least read through before passing judgement.


Yes, I mean sticking with Django and jQuery. I think it's really ugly to have DOM stuff in your view functions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: