The code to get the data in my view looks like this:
order = Order.objects.filter(owner=request.user).order_by('-id')[:10]
The code in my template looks like this and works great. Now, the thing is that i want this table to update its information every 10 seconds without refreshing the whole page. The url to the view is / and the name of the template is home.
           <table class="table table-striped table-condensed">
              <tr>
                <th>Reg.nr.</th>
                <th>Märke</th>
                <th>Modell</th>
              </tr>
              {% for i in order %}
                {% if i.order_booked %}
                <tr class="success">
                {% else %}
                <tr>                    
                {% endif %}
                 <td>{{ i.regnr|upper }}</td>
                 <td>{{ i.brand|capfirst }}</td>
                 <td>{{ i.brand_model|capfirst }}</td>
              </tr>
              {% endfor %}
            </table>
urls.py looks like this
urlpatterns = [ url(r'^$',views.home, name='home'), url(r'^login/', auth_views.login, {'template_name':'login.html'}, name='account_login'), url(r'^logout/', auth_views.logout, {'template_name':'logout.html'},name='account_logout'), url(r'^add_order/', views.add_order, name='add_order'), url(r'^admin/', admin.site.urls), ]
Can anyone of you shed some light over this i would greatly appreciate it!
 
     
    