Re:
as you're practicing the exactly the 'building the first app' tutorial, you've placed your templates wrong.
Move your 'Templates' folder one directory UP.
On Saturday, December 22, 2012 9:46:16 AM UTC+5, vinoth kumar renganathan wrote:
-- On Saturday, December 22, 2012 9:46:16 AM UTC+5, vinoth kumar renganathan wrote:
i am new user to django .and i don't know how to add .html files (template dirs ) to the apps folders .what are the things want to change in settings.py
the error will be templatedoesnotexist
/polls
/admin.py
/__init__.py
/models.py
/tests.py
/urls.py
/views.py
/template
/polls
/index.html
and this order will be correct or not
for example this will be codings
{% if latest_poll_list %}
<ul>
{% for poll in latest_poll_list %}
<li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}
is it necessary to add htmltag ,header tag and doctype before this html codings
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/WyI4E7pjorMJ.
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