Sunday, April 7, 2013

Re: how to cat'ing string in html file

Thank you again Pankaj,

But evaluated string is just ".jpg" . "/media/" and i.no are absent..

On Sunday, April 7, 2013 12:16:34 PM UTC+3, psjinx wrote:
On Sun, Apr 7, 2013 at 1:11 PM, Fatih Tiryakioglu <fati...@gmail.com> wrote:

> {% with "/media/"|add:"{{ i.no }}"|add:".jpg" as template_str %}
This should be

{% with "/media/"|add:i.no|add".jpg" as template_str %}
    <img src="{{ template_str }}r" />
{% endwith %}

You don't need to use `{{ }}` inside `{% %}`.

--

Sincerely,
Pankaj Singh
http://about.me/psjinx

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate