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

  • SEARCH
  • Home
  • 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 1089725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:16:04+00:00 2026-05-16T23:16:04+00:00

In GAE Python, I could use class MyRequestHandler(webapp.RequestHandler): def get(self): pass #Do Something… def

  • 0

In GAE Python, I could use

class MyRequestHandler(webapp.RequestHandler):
    def get(self):
        pass #Do Something...
    def post(self):
        pass #Do Something...

To handle GET and POST request. But how can I handle DELETE and PUT? I see delete() and put() in API documentation, but I don’t know how to write a form to simulate DELETE and PUT.

I know in Rails, I can use post method with a hidden field in form to simulate the requests like this:

<input type="hidden" name="_method" value="delete" />

and Rails handles the dirty works automatically.

Is there any similar way to do it in GAE python?

I searched this in Google, but no luck.

Thanks.

  • 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-16T23:16:04+00:00Added an answer on May 16, 2026 at 11:16 pm

    You can use the request method which accepts all the methods like get,post,delete and put.
    Then you can check it for the request type accordingly.

    Check this:

    http://gdata-python-client.googlecode.com/svn/trunk/pydocs/gdata.urlfetch.html

    <form method="post" action="">
     <input type="hidden" name="_method" value="put" />
     <input type="text" name="name" value="" />
     <input type="submit" value="Save" />
    </form> 
    
    def post(self):
        method= self.request.get("_method")
        if method == 'put':
           #call put() function as required
    

    you can go through this as well for the put specification.

    http://code.google.com/appengine/docs/python/tools/webapp/requesthandlerclass.html#RequestHandler_put

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

Sidebar

Related Questions

I use this code to define my class in GAE Python: class Pair(db.Model): find
In GAE (Python), using the webApp Framework, calling self.redirect('some_url') redirects the user to that
In Python and GAE, I would like to ask how to get the parameters
Overnight hack, trying to create an environment where GAE code (using Python libs/packages) could
I would like to have a GAE-Python Datastore Kind for something similar to a
I'm using GAE with python and I came across this problem, I'm trying to
I am using GAE with python and I can ask users to sign in
I've got a GAE in Python and I am using the Channel API: https://developers.google.com/appengine/docs/python/channel/functions
I want to share some modules between a python GAE project, and another python
I want to develop a GAE application using python, but I fear that Google

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.