Ajax are just normal HTTP requests. You can write a view in your code which
returns data from db. If it is a post requests then make sure you're adding
"csrfmiddlewaretoken" in the ajax data.

On Mon, 31 Aug 2015 at 19:30 jasir1903 <[email protected]> wrote:

> How to retrive Data from Db in Django to Template using Ajax? I am new to
> Django i need to retrive the data WITHOUT PAGE REFRESH USING AJAX please
> help me with that..
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c4c35ccb-ed72-4850-87f5-730310f37883%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c4c35ccb-ed72-4850-87f5-730310f37883%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAByqUgj_w8cf54ONATFEtAXcg4m2Qa_WgFSAYXBwnR9%2B5PCSJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to