Code

Opened 4 years ago

Closed 4 years ago

#12741 closed (invalid)

Plz help with understanding !

Reported by: Nebjula Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

in your tutourial to django 1st application PART3.There's one paragrah I just cannot understand:

"Ah. There's no template yet. First, create a directory, somewhere on your filesystem, whose contents Django can access. (Django runs as whatever user your server runs.) Don't put them under your document root, though. You probably shouldn't make them public, just for security's sake. Then edit TEMPLATE_DIRS in your settings.py to tell Django where it can find templates -- just as you did in the "Customize the admin look and feel" section of Tutorial 2.
When you've done that, create a directory polls in your template directory. Within that, create a file called index.html. Note that"

Why do I have to creat index.html again and again? There already one in file admin/index.html created in Part2 tutourial.
What does the "document root" mean?

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Please don't use the ticket system to ask support questions. Use the django-users mailing list for that, or our IRC channel. (See the "Get help" section of the community page for more information.)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.