Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
live(real time) database retrive
i am using django in ubuntu 15.10 and python 3.52.
i am working on a project which is similar to shopping website.
here i want to retrive database live(real time) without refresh browser.
in php i use ajax request to do that work but in django i can not do that at same way.

problem description:
in product page every product have a button name "Add cart" . when anyone click add cart then 
the item add to my database and show the "total cart" in the same page menu bar which i create without refresh browser.

in php i create this process using ajax request. 
but in django i can not do the live(real time) retrive from database.but i can add this product in database without refresh but i cant retrive the total number of item from database live(real time).
if anyone  know that process please help because i am new in django.
thanks in advance.....
Same way as php, use ajax.
It's dangerous to go alone!  Take this: https://docs.python.org/3/library/index.html

Currently #4 in both post count, and rep. wavic and buran, I'm coming for you...

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Insert results API in database daryl 2 161 Mar-16-2018, 08:32 AM
Last Post: thomasp
  Python Database Django gilesgerman 5 211 Feb-24-2018, 08:02 PM
Last Post: gilesgerman
  SQL Alchemy, database does not work Peter_EU 3 887 Oct-28-2017, 06:20 PM
Last Post: Chuy
Photo only foreign key id retrive when i pass model instance to form but i want other field x64 0 717 Jun-03-2017, 05:58 AM
Last Post: x64

Forum Jump:

Users browsing this thread: 1 Guest(s)