I have a Django server which is locally hosted and displays sensor data from a MySQL database. This data is displayed on the `instruments.html` page through variables such as `{{qs.value}}` which comes from the `views.py`, `models.py` and `URLs.py`. The `views.py` page is as follows:

```
from django.http import HttpResponse
from django.shortcuts import redirect, render
from .models import Sensorresult

def db(request):
    qs = Sensorresult.objects.using('Vision').get(sensorresult='1')
    return render(request, 'authenticate/instruments.html',{'qs':qs})

```

The problem I have is that I want the database information to update on the html every second, whereas currently it only updates when the page is refreshed. I know I could place a line of javascript at the top of the page and have the entire webpage constantly update, but I only want the database values to update. Does anyone have any suggestions as to how to do this?

From googling have come across `Ajax`, however this is something I have no experience in and I am unsure how my code would be edited to accommodate this?

Many thanks