N
N
Neyury2017-02-05 18:07:06
Django
Neyury, 2017-02-05 18:07:06

How to return url with parameters from django view?

To search and filter products, I use the parameters that are passed along with the GET request. But the response object returned from the view no longer has them.
When using the standard django paginator, problems may arise, since the initial list of pages was formed based on the parameters passed, and if you click the next page, the page request will be without them, and the page will return based on the list formed without parameters.
What to do in this case? Or how to pass parameters in the response object (not in the context)? (I use the render function) Or how to make them immediately in the URL of the opened page?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question