Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Django Redirect Depending On Request Method

def third(request):
      if request.method=="POST":
         return render(request,'third.html', {'name': request.method})
   else:
       return HttpResponse("HELLO WORL IS TRUE")
 
PREVIOUS NEXT
Tagged: #Django #Redirect #Depending #On #Request #Method
ADD COMMENT
Topic
Name
2+8 =