This is the code HTML to submit a form in MainPage Class :
self.response.out.write("""
          <form action="/sign" method="post">
            <div><textarea name="content" rows="3"
cols="60"></textarea></div>
            <div><input type="submit" value="Sign Guestbook"></div>
          </form>
        </body>
      </html>""")



And that's my other class Guestbook which take values and use the model to
insert data :
class Guestbook(webapp.RequestHandler):
  def post(self):
    greeting = Greeting2()

    if users.get_current_user():
      greeting.author = users.get_current_user()

    greeting.content = self.request.get('content')
    greeting.put()
    self.redirect('/')
------------

This project work perfecly in localhost, the method post should be taked by
the webapp callback

application = webapp.WSGIApplication(
                                     [('/', MainPage),
                                      ('/logout', Logout),
                                     ('/login', Login),
                                      ('/sign', Guestbook)],
                                     debug=True)


Thanx for help ! :)

On Sat, Dec 6, 2008 at 4:37 AM, kang <[EMAIL PROTECTED]> wrote:

> your code?
>
> On Sat, Dec 6, 2008 at 5:12 AM, SebastienDudek <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi !
>>
>> I started a new application inside Google Engine :
>> http://fluxius.appspot.com/
>>
>> This application is a part of guestbook in documentations. Problem is
>> than I can submit by get methods but with post methods I have this
>> error :
>>
>> Error: Method Not Allowed
>> The request method GET is inappropriate for the URL /sign.
>>
>>
>> To See whats the problem, I used get after the post method and I saw
>> than on "/sign" url, get is only used.
>>
>> P.S : This project works on localhost ^^!
>>
>>
>>
>
>
> --
> Stay hungry,Stay foolish.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to