Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Redirect to same page after POST method using class based views

from django.http import HttpResponseRedirect

def someview(request):

   ...
   return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Redirect #page #POST #method #class #based #views
ADD COMMENT
Topic
Name
1+2 =