Opened 15 years ago
Closed 15 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: | no | UI/UX: | no |
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?
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.)