I am new to django,
I’ve got models with data that I want to display in a table format.
I’m used to using gridviews in asp.net and I am looking for an alternative.
Is the best way to do this using template iteration tags and is there some sort of tutorials online showing examples on how to do this?
Django explicitly avoids providing front end widgets (like ASP.NET gridviews or Rails scaffolding).
If you want this in a regular template you gotta roll your own:
However if you want to provide admins with quick ways to edit/view data you can use the Django Admin Site. Make sure you have the
django.contrib.adminin yourINSTALLED_APPSsetting and then (in the most trivial example) just create aadmin.pyfor your app with: