Re: django template language issue

2009-08-17 Thread Adonis
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

Re: django template language issue

2009-08-17 Thread David Zhou
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

Re: django template language issue

2009-08-17 Thread James Bennett
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