Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#28102 closed Cleanup/optimization (fixed)

Document how to put the full path of the built-in widget directories in DIRS

Reported by: no Owned by: Windson yang
Component: Documentation Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: yes UI/UX: no

Description (last modified by Tim Graham)

The documentation for the DIRS template setting states that

This should be set to a list of strings that contain full paths to your template directories

However, the documentation for the TemplatesSetting class tells us:

Adding the built-in widgets templates directory (django/forms/templates or django/forms/jinja2) in DIRS of one of your template engines.

That is, it says to add a relative path to the DIRS setting, which contradicts the documentation for DIRS.

Change History (6)

comment:1 by Tim Graham, 8 years ago

Description: modified (diff)
Easy pickings: set
Summary: Contradictory documentation about DIRS and TemplatesSettingDocument how to put the full path of the built-in widget directories in DIRS
Triage Stage: UnreviewedAccepted

The TemplatesSetting docs could be more explicit and include an example of how to compute the full path to Django's built-in widget directories. The same confusion was also raised in #28088.

comment:2 by Windson yang, 8 years ago

Owner: changed from nobody to Windson yang
Status: newassigned

comment:3 by Windson yang, 8 years ago

I pull request here https://github.com/django/django/pull/8513 but failed at doc test, any idea? Thanks.

comment:4 by Tim Graham, 8 years ago

Has patch: set
Patch needs improvement: set

comment:5 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 7f23809:

Fixed #28102 -- Doc'd how to compute path to built-in widget template directories.

comment:6 by Tim Graham <timograham@…>, 7 years ago

In b373812b:

[1.11.x] Fixed #28102 -- Doc'd how to compute path to built-in widget template directories.

Backport of 7f238097c0614707d6ee3fffbaf76f111b2fd38d from master

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