Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2485 closed enhancement (fixed)

Confusing comment in settings.py

Reported by: anonymous Owned by: adrian
Component: Template system Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Hi guys,

file settings.py

It took me half an hour to realize the TEMPLATE_DIRS tuple wants an absolute path (I'm on Windows). Now I've finally got it but it could leave some newbies like myself wondering for a while.

So something like replacing the actual comment
# Put strings here, like "/home/html/django_templates".
# Always use forward slashes, even on Windows.

with
# Put _absolute paths_ here, like "/home/html/django_templates" or "C:/www/foo_project/templates"
# Always use forward slashes, even on Windows.

Other than that, thanks for Django!

Change History (2)

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [3525]) Fixed #2485 -- Added comment to project_template/settings.py that says to use absolute paths, not relative paths

comment:2 Changed 9 years ago by anonymous

huy

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