From my Django application, how do I redirect the user to somescheme: //someurl.com?
To give you some context if it helps, I have a working oauth2 server written in Python / Django and I need to allow users to register redirect_uris that have a custom URL scheme. This custom URL scheme is used to handle redirects in native applications .
My first reaction was to use an HttpResponseRedirect, but this URL has a user scheme and is not HTTP, so I assume this is not what I want. Thanks in advance for any advice you can give.
Edit: I tried this and Django correctly returned the response without throwing an error, but the browser does not redirect this URL. I use Chrome to verify this.
Edit 2: HttpResponseRedirect works fine on safari.
source
share