Opened 2 years ago

Closed 2 years ago

#20051 closed Cleanup/optimization (fixed)

Missing info in tutorial page 2

Reported by: anonymous Owned by: woodm
Component: Documentation Version: 1.5
Severity: Normal Keywords: tutorial
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Go to https://docs.djangoproject.com/en/1.5/intro/tutorial02/

ctrl+F "By default, TEMPLATE_DIRS is empty."

It says add this line of code:

TEMPLATE_DIRS = (
    '/path/to/mysite/templates', # Change this to your own directory.
)

But it doesn't say what file to add this to, I got help on IRC, but it should say edit your settings.py file and find this bit and change accordingly.

Change History (8)

comment:1 Changed 2 years ago by macca728@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 2 years ago by claudep

  • Easy pickings set
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 2 years ago by rahobbs

It looks like this has already been changed. https://github.com/django/django/blob/master/docs/intro/tutorial02.txt

Should this ticket be closed?

comment:4 Changed 2 years ago by charettes

This was fixed in the development version of the doc by 3f1c7b70537330435e2ec2fca9550f7b7fa4372e but not in 1.5.

Maybe we could backport this.

comment:5 Changed 2 years ago by anonymous

  • Owner changed from nobody to anonymous
  • Status changed from new to assigned

comment:6 Changed 2 years ago by woodm

  • Owner changed from anonymous to woodm

comment:7 Changed 2 years ago by woodm

  • Has patch set

comment:8 Changed 2 years ago by Simon Charette <charette.s@…>

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

In 5c788770167bc236fb1e16ac6d1414db26fee26c:

[1.5.x] Fixed #20051 -- Specified where to define TEMPLATE_DIRS.

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