I'd like to create a school management system for my personal project.
Let's say there is an Admin for every School. But there is some Admin that can manage more than one schools, and they can switch between schools to manage each school.
I've thought one way to do it, by using different URL path eg.
urlpatterns = [
url(schools/<int:pk>/, SchoolView.as_view()),
]
Is there a way so I do not separate by using different URL path for each schools? So, each Admin get similar URL path, but the view render or filter to use different school, based on the Admin.
But I don't really know how to do that? Can I get an advice how to do it. Many thanks!