django adding to url in redirect code example
Example 1: django redirect to external url
from django.shortcuts import redirect
def optout(request):
return redirect("http://stackoverflow.com/")
Example 2: django redirect url
LOGIN_REDIRECT_URL = 'your_url'
LOGOUT_REDIRECT_URL = 'your_url'