Opened 5 years ago

Closed 5 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: master
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


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 Changed 5 years ago by James Pic

Cc: James Pic added

comment:2 Changed 5 years ago by James Pic

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

comment:3 Changed 5 years ago by Tim Graham

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

comment:4 Changed 5 years ago by Tim Graham

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