I would verify that the view actually assigns to the template variable what you are expecting it to be assigned to.
--
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...@googlegroups.com.
To post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/67ee6682-048f-442c-8fd5-859932dc6881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I would verify that the view actually assigns to the template variable what you are expecting it to be assigned to.
From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of Christian Seberino
Sent: Thursday, August 2, 2018 3:36 PM
To: Django users
Subject: trouble adding variables to URLs in templates... seems some characters get cut out like "?"
Suppose you have a URL built from a variable in a template like so...<a href = "{{some_variable}}">test</a>.
I noticed that parts of some_variable get cut out if they include certain characters.
For example... "/search/?search=" seems to get replace with "/search/". What is the part after "?" cut off?
(I have same problem even if I do {{some_variable|safe}}.
Chris
--
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...@googlegroups.com.
To post to this group, send email to djang...@googlegroups.com.