Aucune description

views.py 388B

1234567891011121314
  1. from django.shortcuts import render
  2. def index(request):
  3. """
  4. Renders the index page for the report app.
  5. """
  6. # Optional: Pass any context variables to the template
  7. context = {
  8. 'page_title': 'Report Dashboard',
  9. 'reports': [], # Replace with actual data, e.g., a queryset from the database
  10. }
  11. return render(request, 'report/index.html', context)