Opened 2 years ago

Closed 2 years ago

#19892 closed Cleanup/optimization (fixed)

mysite/mytemplates/ directory introduced in tutorial02, should it be mysite/templates/ ?

Reported by: jpic Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: jpic 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 Changed 2 years ago by jpic

  • Cc jpic added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 2 years ago by jpic

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

comment:3 Changed 2 years ago by timo

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

comment:4 Changed 2 years ago by timo

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top