from django.shortcuts import redirect def optout(request): return redirect("http://stackoverflow.com/")
LOGIN_REDIRECT_URL = 'your_url' LOGOUT_REDIRECT_URL = 'your_url'