I have a situation in my project where i need to make a redirection of the user to an url containing a parameter, (it is declared in the urls.py like:
url(r
When everything seems not to be working i use return render and check if it is post request in case anybody refresh the page
if request.POST:
message = "Thank you."
return render(request, 'index.html', locals())
return HttpResponseRedirect('/')
The local() make the parameter accessible on the template