Re:
Do you have the template_dirs setting in your settings.py pointing to
project/app/templates/ ?
On Sat, Dec 22, 2012 at 4:46 PM, vinoth kumar renganathan
<vinoth.vinothrenga@gmail.com> 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 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.
--
...we look at the present day through a rear-view mirror. This is
something Marshall McLuhan said back in the Sixties, when the world
was in the grip of authentic-seeming future narratives. He said, "We
look at the present through a rear-view mirror. We march backwards
into the future."
http://www.warrenellis.com/?p=14314
--
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