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 James Pic, 12 years ago

Cc: James Pic added

comment:2 by James Pic, 12 years ago

Also, note that this has been worked on in a branch.

comment:3 by Tim Graham, 12 years ago

Yes, I merged your suggestions in [1b7fb29dfb8].

comment:4 by Tim Graham, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top