I am working my way though the tutorials with Django version 1.0.2; so
far, so good, until I get stuck about half way through tutorial 3. I
have created an index.html file under '/home/tg/templates/polls'. I
have specified the search path(s) for the templates in settings.py as
follows:
TEMPLATE_DIRS = (
'/home/tg/templates',
'/home/tg/templates/polls',
)
and I have configured the views.py file as so:
t = loader.get_template('index.html')
I have also tried:
t = loader.get_template('polls/index.html')
No luck: I keep getting a 404 from the browser at the address:
http://localhost:8000/polls/index.html
Is there anything I have missed or messed-up?
Thanks much,
Thomas Grzybowski
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---