Opened 6 years ago

Closed 6 years ago

#29210 closed New feature (wontfix)

Include default templates for class-based views

Reported by: James Pic Owned by: nobody
Component: Generic views Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django could ship a default django/list.html by default for the ListView, even if it's not design to show the configuration and demonstrate how to use context variables.

Same for other templates.

Didn't find a ticket for this if duplicate please forgive me and close ;)

Change History (2)

comment:1 by Claude Paroz, 6 years ago

You have example files in the documentation (https://docs.djangoproject.com/en/2.0/ref/class-based-views/generic-display/#listview).
What would you do more than that?

comment:2 by Tim Graham, 6 years ago

Component: UncategorizedGeneric views
Resolution: wontfix
Status: newclosed
Summary: Default list.htmlInclude default templates for class-based views
Type: UncategorizedNew feature

Like Claude, I'm not immediately convinced that sufficiently generic and useful templates could be written to justify this. The concept could start as a third-party application. Then a proposal to include it in Django should first go through the DevelopersMailingList rather than through this issue tracker.

Note: See TracTickets for help on using tickets.
Back to Top