#2485 closed enhancement (fixed)
Confusing comment in settings.py
Reported by: | anonymous | Owned by: | Adrian Holovaty |
---|---|---|---|
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: | no | UI/UX: | no |
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!
(In [3525]) Fixed #2485 -- Added comment to project_template/settings.py that says to use absolute paths, not relative paths