Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6028743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:47:07+00:00 2026-05-23T04:47:07+00:00

When I do a Http DELETE request to a django app. it directly returns

  • 0

When I do a Http DELETE request to a django app. it directly returns a 301(Moved permanantly) response and redirects me to GET request of same url. I am guessing that Http PUT request would return 301 just like DELETE request. Is there any way to process DELETE request with django?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:47:08+00:00Added an answer on May 23, 2026 at 4:47 am

    The redirect is caused by the APPEND_SLASH setting:

    APPEND_SLASH

    Default: True

    When set to True, if the request URL
    does not match any of the patterns in
    the URLconf and it doesn’t end in a
    slash, an HTTP redirect is issued to
    the same URL with a slash appended.
    Note that the redirect may cause any
    data submitted in a POST request to be
    lost.

    Make sure your server and client are consistent with trailing slashes.

    If your project does not need the trailing slashes at all (i.e., it is an api without trailing slashes) you can disable it. Otherwise, make sure your urlconf accept paths without a trailing slash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending a simple GET request via the API http://myhudson/job/jobname/lastBuild/delete however, hudson seems
When issuing an HTTP DELETE request, the request URI should completely identify the resource
Is there anything non-RESTful about providing parameters to a HTTP DELETE request? My scenario
What is the practical benefit of using HTTP GET, PUT, DELETE, POST, HEAD? Why
Is it possible to send a HTTP DELETE request from the shell and if
Rails is supposed to magically see that a request is a DELETE versus GET
I'm trying to delete a user using Django Admin, but I get this error:
I'm having a software who is doing a http GET request and then I
I have a simple problem. I want to delete all app request sent via
I need to disable PUT, DELETE & TRACE HTTP requests on my Application Server,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.