Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
realtime database update in django
#1
please help me if anyone know the process how can i update my webpage realtime when update my database. We need to page refresh to see the latest database update. I want to know the process how can i show update in my webpage when update database without refresh page.

thank you
Reply
#2
AJAX
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
Ajax is how the client can request updated info, but if the client doesn't know when it should look for more info (most of the time, it will), then you'll need to look into Pushing data.  I think the best way to do that currently is via websockets, falling back to long running ajax requests for clients that don't support websockets, and falling back to a timed ajax call for clients that don't like to keep open requests.

The easiest, by far, is to just use ajax requests every so often (10 seconds?), and send the server a timestamp of the most recent update you have, so it can send you all the updates since that time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CRUD in Update operation in Django Sowmya 2 200 Mar-19-2024, 04:14 AM
Last Post: Sowmya
  Django: View is unable to find attributes of database model pythonpaul32 0 484 Dec-07-2023, 06:38 PM
Last Post: pythonpaul32
  Save JSON data to sqlite database on Django Quin 0 2,804 Mar-26-2022, 06:22 PM
Last Post: Quin
  Send email to gmail after user fill up contact form and getting django database updat Man_from_India 0 2,071 Jan-22-2020, 03:59 PM
Last Post: Man_from_India
  how retrieve database save multiple data in web Django 2.1 taomihiranga 0 2,764 Jul-30-2019, 04:58 PM
Last Post: taomihiranga
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,247 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django- Remove leading zeros in values from database ntuttle 1 3,461 Mar-07-2019, 07:30 PM
Last Post: nilamo
  Django- which database i should use? with best speed and performance!! ma_norouzifar 4 4,777 Dec-10-2018, 09:47 AM
Last Post: ma_norouzifar
  How to save uploaded image url in database from Django? PrateekG 14 14,705 Jul-04-2018, 05:18 PM
Last Post: PrateekG
  Need your help to fix my database relationship in Django model PrateekG 0 2,632 Jul-02-2018, 11:08 AM
Last Post: PrateekG

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020