1from django.shortcuts import redirect
2
3def my_view(request):
4 # ...
5 return redirect('some-view-name', foo='bar')
6
1 from django.shortcuts import redirect
2
3 def optout(request):
4 return redirect("http://stackoverflow.com/")
5