Is possible to add GET variables in a redirect ? (Without having to modifiy my urls.py)
If I do redirect(\'url-name\', x)
I get HttpRespo
I think it's worth noting that Django's RedirectView class has a built-in class attribute query_string which can be overridden or passed to as_view. If set to True, query_string will preserve the query string in the redirect. For example, you could put the following in urls.py:
path('example-redirect/',
RedirectView.as_view(url='https://example.com', query_string=True),
name='example_redirect')