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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:08:00+00:00 2026-05-26T01:08:00+00:00

I am doing a project in google app engine. Python is used in the

  • 0

I am doing a project in google app engine. Python is used in the back end. I have a datastore table “Data” with following attributes,

class Data(db.Model):
  url = db.StringProperty
  code = db.StringProperty
  turl = db.StringProperty

I used following lines of code to get all values from the table,

x = Data.all()
        x = db.GqlQuery("SELECT * FROM Data")
        ourl = x.fetch(10)

When i print it using the following code,

for p in ourl:
          print "%s %s, %s " % (p.url, p.code, p.turl)

i got 10 times the following message,

<class 'google.appengine.ext.db.StringProperty'> <class 'google.appengine.ext.db.StringProperty'>, <class 'google.appengine.ext.db.StringProperty'> 

I cannot get the real values of url,code and turl. What to do with this code??

  • 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-26T01:08:00+00:00Added an answer on May 26, 2026 at 1:08 am

    In your class Data you forgot parenthesis to create instances of property.

    class Data(db.Model):
      url = db.StringProperty()
      code = db.StringProperty()
      turl = db.StringProperty()
    

    Currently your simply copy the class db.StringProperty in your attributes defined in your class Data

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

Sidebar

Related Questions

I'm a newbie to Google App Engine but have played around with Django in
I'm attempting my first google app engine project – a simple player stats database
Hi I am doing one project in JSP with Google application engine. Now I
I'm working on a small Google App Engine project in which I need to
I'm working on a Google App Engine project that collects stories submitted by users.
The app-engine-patch authors have officially marked this wonderful project as dead on their website.
I am doing project euler question 33 and have divised a refactor to solve
I'm doing a project in seam that requires restful URLs. I have a view
When researching Google App Engine (GAE), it's clear that using Django is wildly popular
How can I use GOOGLE DOCS in my project which I am doing using

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.