Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
urlencode does not work
#3
(Mar-05-2020, 10:35 AM)scidam Wrote: What did you expect from urlencode? Could you provide example with specific value of t and desired result after applying urlencode. Note, that urlencode can take additional argument, characters that should be skipped when encoding; by default, it is only backslash char; If you want to disable skipping characters at all, you can do by providing empty string as a parameter, e.g. {{ t|urlencode:"" }}. Hope that helps.


I folow this link : https://docs.djangoproject.com/en/3.0/re.../builtins/
I would like to encode the url
<a href="/theme/{{t|urlencode}}">
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