How vhinas07-rgb/schoolpj works
This is a Django course-catalog site. Visitors can browse courses, optionally filter by category, and open an active course’s detail page. URL configuration dispatches requests to the catalog views, which query course/category models and render HTML templates. Staff can manage courses and categories through Django admin. The sampled code establishes these main paths; it does not show the template contents or the runtime database operations beyond the ORM queries and SQLite configuration.
Main entry points: views.py Catalog views · models.py Courses and categories · schoolpj/urls.py Project routes · courses/urls.py Course routes
Components 10
Course catalog
- Catalog views
courses/views.py - Catalog page
templates/home.html - Course detail
templates/detail.html
Catalog content
- Courses and categories
courses/models.py - SQLite database
- Course admin
courses/admin.py
Django platform
- Project routes
schoolpj/urls.py - Course routes
courses/urls.py
Other components
- Visitor
- Staff user
Connections 9
- Visitor → Project routes: requests pages
schoolpj/urls.py - Project routes → Course routes: includes routes
schoolpj/urls.py - Course routes → Catalog views: dispatches requests
courses/urls.py - Catalog views → Courses and categories: queries courses
courses/views.py - Catalog views → Catalog page: renders results
courses/views.py - Catalog views → Course detail: renders course
courses/views.py - Courses and categories → SQLite database: stored via ORM
- Staff user → Project routes: opens admin
schoolpj/urls.py - Course admin → Courses and categories: registers models
courses/admin.py