[Chicago] Django + AJAX

Carl Karsten carl at personnelware.com
Mon Jun 4 21:46:51 CEST 2012


over a year ago, I did a tiny bit of ajax with django, here it is:

https://github.com/CarlFK/veyepar/tree/master/dj/accounts

I have no idea if that is state of the art, but I would highly
recommend looking at it and figuring out how it works, I will be happy
to answer questions.   It will give you an idea of the mechanics that
need to be set up on client and server, and will help me clean up the
code to make it a better example.

It is possible that there is some new nifty drop in stuff that
abstracts the mechanics, but I would still recommend knowing how it
works.

On Mon, Jun 4, 2012 at 1:42 PM, Daniel Peters <danieltpeters at gmail.com> wrote:
> I've found it useful sometimes to go here
>
> http://www.djangosites.org/
>
> and check search for "sites with source".  It may not be best practices per
> se, but can give you some ideas.  theres also an app out there called
> dajax?  Dajaxice as well, i think.  I've never used either of them but they
> seem to allow for python driven ajax calls.
>
> and then maybe, last call, try searching through github.
>
> On Mon, Jun 4, 2012 at 1:26 PM, Oren Livne <livne at uchicago.edu> wrote:
>>
>> Dear All,
>>
>> What is the best practice of creating a django app with ajax? In
>> particular, polling (periodically updating a portion of a page) and updating
>> a portion upon an event (button click/link click/drop down menu). Sample
>> code would be great.
>> [I did google it first]
>>
>> Thank you so much in advance,
>> Oren
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
>
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>



-- 
Carl K


More information about the Chicago mailing list