Templates Directory Question
In Tutorial 2, I was instructed to make a templates directory. It is
located at:
C:\DjangoProjects\mysite\templates
Now again in Tutorial 3, section "Write views that actually do
something", I am given the instructions:
.... 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.....
I think the document who's root I cannot put them under is the
views.py document, as that's what I had been editing. It is located
at:
C:\DjangoProjects\mysite\polls\views.py
I guess my question is, where is the best place for this new templates
directory? Can I simply make a subdirectory in the templates
directory for the views.py template? For example, like this:
C:\DjangoProjects\mysite\templates\views\
Sorry for a question with likely a quite obvious solution, but thanks
again for any assistance.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home