Django simple url redirect


/ Published in: Django
Save to your folder(s)



Copy this code and paste it in your HTML
  1. from django.http import HttpResponseRedirect
  2.  
  3. def myview(request):
  4.   ...
  5.   return HttpResponseRedirect("/path/")

URL: http://stackoverflow.com/questions/523356/python-django-page-redirect

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.