Opened 12 years ago
Closed 12 years ago
#19892 closed Cleanup/optimization (fixed)
mysite/mytemplates/ directory introduced in tutorial02, should it be mysite/templates/ ?
Reported by: | James Pic | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | James Pic | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Working on the staticfiles documentation. Jannis said that it would be better to have STATICFILES_DIRS introduced the same way as TEMPLATE_DIRS.
But TEMPLATE_DIRS is mysite/mytemplates/
in tutorial02: Customizing your project's templates.
Does this mean that we have to document the example STATICFILES_DIRS as STATICFILES_DIRS=[os.path.join(BASE_DIR, 'mystatic')]
just like TEMPLATE_DIRS=[os.path.join(BASE_DIR, 'mytemplates')]
?
Or should TEMPLATE_DIRS
be changed to TEMPLATE_DIRS=[os.path.join(BASE_DIR, 'templates')]
so that we could use STATICFILES_DIRS=[os.path.join(BASE_DIR, 'static')]
?
Change History (4)
comment:1 by , 12 years ago
Cc: | added |
---|
comment:2 by , 12 years ago
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Also, note that this has been worked on in a branch.