Good day. The essence of the problem: I redirect to urlpatterns with the redirect_to function to a specific address, you need to pass a Russian text line along the way (although you can just have the boolean name = 1 for example). Now implemented as a getter parameter in url, here:
(r'^foo/$', redirect_to, {'url': '/bar?check=1'}),
But something seems to me that it is possible and somehow more elegant, without using het parameters, simply by specifying the variable = value. Any thoughts? Or is my method the only one?
Oh yeah, it would also be nice to get into the request request to use its data in compiling the url (specifically, we need information about the current user, i.e. request.user). Is there any way to define a user in urlpatterns? Thank.