Django 1.4 - Redirect to Non-HTTP urls
问题 We have a view which redirects to a Non-HTTP url scheme. Its used in an iOS app. But since we have upgraded to Django1.4 we are getting a crash when this redirect code is executed. It crashes with SuspeciousOperation at /myyrlscheme/ Unsafe redirect to URL with scheme appdev: Following is the code: if acode and acode.has_key('access_token'): if DOMAIN == 'dev.mywebsite.com': return HttpResponseRedirect('appdev://fbconnect?token=%s'%(acode['access_token'])) else: return HttpResponseRedirect(