Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

299
Views
Django - Can't do a POST request, receiving 405 "Method not allowed"

i'm trying to do a simple POST request to my endpoint, but i'm getting a 405 "Method not Allowed", here's my code:

urlpatterns = [
    url(r'^api/exemplo/post/$', ExempleView.as_view(), name='post'),
]

Post method:

class ExempleView(APIView):

        def post(self, request, *args, **kwargs):
            print(request.data)

Server logs:

Method Not Allowed (POST): /api/exemplos/post/
[29/Apr/2017 14:30:20] "POST /api/exemplos/post/ HTTP/1.1" 405 0

I'm using Postman to do the post request and rest_framework to create my API, any suggestion?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!