If you're a Django newb, I'd recommend first going through the Poll
tutorial<https://docs.djangoproject.com/en/dev/intro/tutorial01/> and
then The Django Book <http://www.djangobook.com/en/2.0/index.html>. You
need a fundamental understanding of Django (and HTML+JavaScript) to
effectively develop what you're describing.

For a client to communicate with Django via ajax using jQuery, you'll use
the ajax method: http://api.jquery.com/jQuery.ajax/

On the server side with Django, you have a few options as to how you
develop an API. A small scale solution that is good for testing is to
simply serialize your HTTP response to JSON before returning it. This will
allow your client to hit URL endpoints and receive JSON responses (which
jQuery handles quite easily) Although arguably not very scalable, you've
effectively created a light API at this point.

A more robust solution using Django is to develop a formal API using an
available framework. I've used Django REST
Framework<http://django-rest-framework.org/>and
Tastypie <http://django-tastypie.readthedocs.org/en/latest/> (and enjoyed
both in different ways), but I'm sure there are others.

With the knowledge gained from the links above, you'll be able to use
jQuery within a HTML template to create and send a request using AJAX to an
API on a server (Django), receive the response from the server, and then
update your template accordingly based upon the response you received.

Jonathan

On Wed, Jul 31, 2013 at 5:41 PM, Robin Lery <robinl...@gmail.com> wrote:

> I was thinking about client communication via ajax and jquery, but also
> interested in jquery ui. I am a django noob and also with ajax. So its very
> confusing for me how to integrate these two. Can you please advice where to
> start?
> Thank you.
>
>
> On Wed, Jul 31, 2013 at 9:54 PM, Jonathan Baker <
> jonathandavidba...@gmail.com> wrote:
>
>> You've posed a pretty open-ended question. Are you looking to provide an
>> API using Django that then a client communicates with via Ajax using
>> jQuery? Or are you interested in, say, using jQuery to manipulate the UI
>> generated by Django templates? If you can be more specific in your goals,
>> more direction can provided.
>>
>> Jonathan
>>
>>
>> On Wed, Jul 31, 2013 at 10:14 AM, Robin Lery <robinl...@gmail.com> wrote:
>>
>>> Hi,
>>> Can any one please suggest good book or tutorials if possible regarding
>>> django and ajax (jquiry). I looked at one book "Django JavaScript
>>> Integration AJAX and jQuery", but it was very confusing and outdated as
>>> well,  didn't help much.Please suggest tutorials or books with latest
>>> version. Would be very thankful.
>>>
>>> Thank you.
>>>
>>> --
>>> 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.
>>
>>
>>
>
>  --
> 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.


Reply via email to