'i have multiple documents in MongoDB database i want to fetch them one by one and display in form of table using django
I have multiple documents in MongoDB database i want to fetch them one by one and show their data in the form of table using Django is there any tool I can use my MongoDB is as follows:

my model code is as follows
from django.db import models
# Create your models here.
class level(models.Model):
time=models.DateTimeField(primary_key=True,default=0)
status=models.CharField(max_length=50)
level=models.DecimalField(max_digits=12,decimal_places=6)
my views code to fetch data is as follows
def generate(request):
events_list=level.objects.all()
return render(request,'result.html',{'res':events_list})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
