Skip to content

Instantly share code, notes, and snippets.

@akatreyt
Created October 29, 2014 04:45
Show Gist options
  • Save akatreyt/7772c28b70c49e2e32ab to your computer and use it in GitHub Desktop.
Save akatreyt/7772c28b70c49e2e32ab to your computer and use it in GitHub Desktop.
request = kwargs.get('request')
current_url = settings.INSTALL_URL
location = current_url + 'profile'
res = HttpResponse(location, status=302)
res['Location'] = location
return res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment