Class based views docs should be more explicit about template location
|Reported by:||PaulM||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In the class based views docs, the location of the default template is mentioned:
In this case, the inferred template will be "books/publisher_list.html" -- the "books" part comes from the name of the app that defines the model, while the "publisher" bit is just the lowercased version of the model's name.
This is misleading because it gives a fairly explicit path without mentioning that this is relative to your templates directory. If you're an experienced Django dev, this is less obvious than you think it is. This should be clarified.
Change History (5)
comment:1 Changed 6 years ago by gabrielhurley
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted