How to redirect to external URL in Django?
问题 I think this should be easy, but I cannot figure it out. I am trying to write an opt-out view. I am receiving a get request. Through urls.py, I render my opt-out view. In this view, I save some parameters for the user in the database and then I want to redirect the user to an external URL. I tried: return redirect('http://stackoverflow.com/') from Django documentation. However, the optout view renders the training template instead of returning the redirect, though the parameters are saved in