Thanks!
On Aug 17, 11:53 am, David Zhou wrote:
> On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote:
> > My problem is that even if the 'projects' queryset is empty, it still
> > includes the projects.html
> > Is there another way to do it?
>
> If you're using at least Django 1.1, you can use the emp
On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote:
> My problem is that even if the 'projects' queryset is empty, it still
> includes the projects.html
> Is there another way to do it?
If you're using at least Django 1.1, you can use the empty tag:
http://docs.djangoproject.com/en/dev/ref/templates
On Mon, Aug 17, 2009 at 5:39 AM, Adonis wrote:
> My problem is that even if the 'projects' queryset is empty, it still
> includes the projects.html
> Is there another way to do it?
Consult the documentation:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for-empty
--
"Bureaucrat
3 matches
Mail list logo