Can someone please give me a small piece of code where we display data from a table and point me to code that goes into views.py and templates/index.html to display the table of contents?
Can someone please give me a small piece of code where we display data
Share
Read the Django tutorial. It shows, in 4 parts, the basics of this framework.
As for your question, a very quick example.
In views.py:
In models.py:
In template.tmpl: