Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
urlencode does not work
#1
I would like to encode the value of t in the url with urlencode. It doen't work. Do you have an idea why ?
thank you.

{% for t in liste_theme_key %}
                <div class="theme">
                  {% with 'accueil/img/'|add:t|add:'.png' as png_url %}
                        <a href="/theme/{{t|urlencode}}"><img class="image_theme" src="{% static png_url  %}" style="width:270px; height: 170px; margin-top:17x;"/></a>
                  {% endwith %}
                </div>
{% endfor %}
Reply


Messages In This Thread
urlencode does not work - by pycada - Mar-05-2020, 01:38 AM
RE: urlencode does not work - by scidam - Mar-05-2020, 10:35 AM
RE: urlencode does not work - by pycada - Mar-06-2020, 11:19 PM
RE: urlencode does not work - by scidam - Mar-07-2020, 08:07 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020