You need an empty __init.py__ in the directory or else the python
files there will not be found.
On Sep 25, 10:29 pm, Matthew Crist <[EMAIL PROTECTED]> wrote:
> Here's my template:
>
> {% load get_latest %}
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html lang="en">
> <head>
> <title>My Site - {%block pagetitle %}{% endblock %}</title>
> </head>
> <body>
> <div id="header">My Site</div>
> <div id="nav">
> <ul>
> <li><a href="/">home</a></li>
> <li><a href="/blog/">Blog</a></li>
> <li><a href="/links/">Links</a></li>
> <li><a href="/about/">About</a></li>
> </ul>
> </div>
> <div id="content">
> <div id="primary">
> <h1>{% block title %}{% endblock %}</h1>
> {% block primary %}{% endblock %}
> </div>
> <div id="secondary">
> <h3>Recent Entries:</h3>
> {% get_latest blog.Entry 5 as recent_posts %}
> <ul class="archive">
> {% for obj in recent_posts %}
> <li>
> <a href="{{
> obj.get_absolute_url }}" title="Permanent Link to
> {{ obj.title}}">{{ obj.title}}</a>
> </li>
> {% endfor %}
> </ul>
> <div>
> </div>
> </body>
> </html>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---