Home python error 405 django

error 405 django

Author

Date

Category

I do not know anything about Django, just a week studying. With the next launch, it began to issue a 405 error. Code to throw a lot, so if not difficult, please tell me what could be the causes of this error?


Answer 1, Authority 100%

Django error 405 may proceed from any number of problems, but usually ends that either you use the wrong URL or use the incorrect query method. Sometimes, both!


Answer 2

If your view has only a GET method, then an attempt to send a request with the POST method will give 405 Method NOT ALLOWED

How for example this view

class myview (view):
  Def Get (Self, Request, * Args, ** kwargs):
    Return none

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions