In the home page for admin, we shall list all the courses in the database. It should also have a button to redirect to the register view so that new courses can be registered.
[ ] Create a home view in admin/views.py
[ ] Perform a Queryset on CourseModel to retrieve all objects of that model and display it on screen in a table
In the home page for admin, we shall list all the courses in the database. It should also have a button to redirect to the register view so that new courses can be registered.
home
view in admin/views.pyCourseModel
to retrieve all objects of that model and display it on screen in a tablehome.html
inadmin/templates
admin/urls.py