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

Above line worked for me.

On Sun, Apr 7, 2013 at 3:05 PM, Fatih Tiryakioglu <[email protected]> wrote:
> 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 <[email protected]>
>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to