Opened 6 years ago
Closed 6 years ago
#31482 closed Cleanup/optimization (wontfix)
The templatetags folder doesn't need to be a package.
| Reported by: | Nat S Dunn | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 3.0 |
| Severity: | Normal | Keywords: | templatetags |
| Cc: | Ian Bottomley | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
In the documentation, it says "The app should contain a templatetags directory, at the same level as models.py, views.py, etc. If this doesn’t already exist, create it - don’t forget the _ _ init _ _.py file to ensure the directory is treated as a Python package."
The directory doesn't need to be a package.
Change History (2)
comment:1 by , 6 years ago
| Cc: | added |
|---|
comment:2 by , 6 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Not seeing this at all.
templatetagscontains.pymodules with the custom tag implementations — it just is a package.Whether there's a
__init__.pydetermines whether it's a regular or namespace package, as per PEP 420.I can't see any benefit in not recommending a regular package here.