Answer the question
In order to leave comments, you need to log in
Why can't django post request be sent without a form?
Hello!
django==1.11
There is a view:
class SimpleRoutingView(View):
def get(self, request):
print('Поступил get-запрос')
return HttpResponse('Поступил get-запрос', status=200)
def post(self, request):
print('Поступил post-запрос')
return HttpResponse('Поступил post-запрос', status=405)
def put(self, request):
return HttpResponse('Поступил put-запрос', status=405)
requests.post(url)
, I get the standard 403 error. But you need to return the 405th status (on assignment). Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question