I am trying to pass a parameter in url named title and it contains question mark(?) in it. I am unable to get complete parameter. Question mark is not showing in my view.
I am trying to pass a parameter in url named title and it contains question mark(?) in it. I am unable to get complete parameter. Question mark is not showing in my view.
That is because the question mark separates the path from the query string [wiki]. You need to encode it with percent-encoding [wiki], so the question mark is replaced with %3F, for example:
somehost.com/foo/bar%3fqux/
Here the part after foo/ will be seen as bar?qux.
That being said, often one wants to avoid these, since it will result in "ugly" URLs. Usually therefore a slug [Django-doc] is used, that removes such characters, and only retains characters that render nicely.