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 6575143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:21:03+00:00 2026-05-25T15:21:03+00:00

I am a beginner in Google app engine and i have this question. I

  • 0

I am a beginner in Google app engine and i have this question.

I try to create a form and when you submit to put all data in datastore. for exmble

class Book(db.Model):
    #book_id = db.key
    title = db.StringProperty()
    author = db.StringProperty()
    #copies = db.IntegerProperty()
    category = db.StringProperty()

class GuestBook(webapp.RequestHandler): def get(self):
        self.response.out.write("""
      <html>
        <body>
          <form action="/sign" method="post">
            <div>Title: <input type="text" name="title"</div>
    <div>Author: <input type="text" name="author"</div>
    <div>Copies: <input type="text" name="copies"</div>
    <div><select>
        <option name="category" value="adventure">Adventure</option>
        <option name="category" value="comedy">Comedy</option>
        <option name="category" value="dramatic">Dramatic</option>
        <option name="category" value="mystery">Mystery</option>
        <option name="category" value="science_fiction">Science Fiction</option></select>
    <div><input type="submit" value="Add Book"></div>
          </form>
        </body>
      </html>""")

and I tried this

class Add(webapp.RequestHandler):
    def post(self):

        Book.title = self.request.get('title')
        Book.author = self.request.get('author')
        Book.category = self.request.get('category')
        book = Book()
        book.put()

But i got these

    Traceback (most recent call last):
  File "/home/kostas89/google_appengine/google/appengine/ext/webapp/__init__.py", line 636, in __call__
    handler.post(*groups)
  File "/home/kostas89/library/library.py", line 59, in post
    book.put()
  File "/home/kostas89/google_appengine/google/appengine/ext/db/__init__.py", line 984, in put
    return datastore.Put(self._entity, config=config)
  File "/home/kostas89/google_appengine/google/appengine/api/datastore.py", line 455, in Put
    return _GetConnection().async_put(config, entities, extra_hook).get_result()
  File "/home/kostas89/google_appengine/google/appengine/datastore/datastore_rpc.py", line 629, in get_result
    self.check_success()
  File "/home/kostas89/google_appengine/google/appengine/datastore/datastore_rpc.py", line 599, in check_success
    rpc.check_success()
  File "/home/kostas89/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 558, in check_success
    self.__rpc.CheckSuccess()
  File "/home/kostas89/google_appengine/google/appengine/api/apiproxy_rpc.py", line 156, in _WaitImpl
    self.request, self.response)
  File "/home/kostas89/google_appengine/google/appengine/api/datastore_file_stub.py", line 710, in MakeSyncCall
    response)
  File "/home/kostas89/google_appengine/google/appengine/api/apiproxy_stub.py", line 87, in MakeSyncCall
    method(request, response)
  File "/home/kostas89/google_appengine/google/appengine/api/datastore_file_stub.py", line 793, in _Dynamic_Put
    self.__WriteDatastore()
  File "/home/kostas89/google_appengine/google/appengine/api/datastore_file_stub.py", line 643, in __WriteDatastore
    self.__WritePickled(encoded, self.__datastore_file)
  File "/home/kostas89/google_appengine/google/appengine/api/datastore_file_stub.py", line 699, in __WritePickled
    os.rename(tmp_filename, filename)
OSError: [Errno 21] Is a directory

So I ‘m sure that this “way” (which i find in a forum) is totaly wrong. Any suggestion fow how i will put data and maybe how i will retrieve it (but this is another story)?
Thanks in advise.

  • 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-25T15:21:04+00:00Added an answer on May 25, 2026 at 3:21 pm

    You should assign values to the instance created

    class Add(webapp.RequestHandler):
      def post(self):
        book = Book() 
        book.title = self.request.get('title')
        book.author = self.request.get('author')
        book.category = self.request.get('category')        
        book.put()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Absolute beginner question: I have a template file index.html that looks like this: ...
Beginner here: In this answer to my question of how to insert data into
I'm a beginner and have just about managed to put together this website with
This is driving me farking insane. I'm trying to create a simple beginner app
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
I'm developing a GWT app running on the Google App Engine and wondering if
I am a beginner to android and have designed a login GUI for app
I'm trying to learn about grails with Google App Engine and JPA by following
I'm sure this is a completely obvious beginner question, but trying to find answers
I asked from few weeks ago this question: How can I teach a beginner

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.