Saturday, January 30, 2010

Re: Using a template variable in the "include" template tag

i wasn't very clear. i was referring to the inability to use operators
in an if statement until current dev version.

Matt

On Jan 31, 12:15 am, Super McFly <martinmal...@gmail.com> wrote:
> You have been able to use if statements as far back as I can remember
> using django (over a year). You might as well finish posting your
> actual problem since you're here and I'll try to help.
>
> As for your version problem you more than likely have the latest
> development version. I notice the same thing despite having the latest
> code.
>
> On Jan 30, 4:23 pm, shofty <m...@bytejunkie.co.uk> wrote:
>
> > On Jan 30, 5:37 am, Sam Lai <samuel....@gmail.com> wrote:
>
> > > You can always use if blocks, e.g.
>
> > > {% ifequal content.model_type "post" %}
> > > {% include "content/post/include.html" %}
> > > {% elseifequal ... %}
> > > ...
> > > {% endif %}
>
> > I believe im right in saying that you can only use if statements in
> > tags when using the development django codebase.
> > cos thats what i've read in the docco, but even so i cant get it
> > working against the development code.
>
> > another question if i may as its relevant and someone may know the
> > answer. if you install the dev code from subversion, when you start
> > the server does it still report itself as version 1.2 alpha 1 or have
> > i got a problem installing my dev version.
>
> > Matt

--
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


Real Estate