Display data from multiple tables in one Template

In your template (.html file) you have to access this variables, for example, if you want to show the status of all packages, then, in the html file you should write something like:

{% for object in o %} <!-- Works like in python-->
            
           <h1>{{object.status}}</h1> 
           <!-- Do this for all other attributes-->
       
{% endfor %} <!-- Must close 'for loop'-->

use this query in your views Order_Detail.objects.all() and pass the context.

views.py

   order_details = Order_Detail.objects.all()
   context = {'order_details':order_details }
   ....your others code

then in your html:

   {{order_details.product}} #accessing data from your Order_Detail model

    {{order_details.orderNumber.status}}  #accessing data from your Order model via foreignkey