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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:41:06+00:00 2026-05-20T09:41:06+00:00

Hey I am trying to create a survey that asks the users to create

  • 0

Hey I am trying to create a survey that asks the users to create his own question and list 5 multiple choices. My first sense is that I create two datastores and one to store the user quesiton and one to to store 5 choices mapping to the question just created. but i dont know how exactly I should do with the 5 multiple choices and how to map them with the question. anybody has an idea? Thank you a lot

  • 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-20T09:41:06+00:00Added an answer on May 20, 2026 at 9:41 am

    As far as I understand you want to represent one to many relation in your schema. There is an analytic guide for that.

    class Question(db.Model):
        text = db.StringProperty()
    
    class Answer(db.Model):
        text = db.StringProperty()
        question = db.ReferenceProperty(Question,
                                   required=True,
                                   collection_name='answers')
    

    This is just the gist of how your model should look like. You can access your answers for each question in the Django rendering template like this, from the query you made in GQL and found your question. If you want to specify a max number of answers for each question you have to do it manually.

    {% for answer in question.answers %}
        {{answer.text}}
    {% endfor %}
    

    I definitely recommend that you go through the tutorial.

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

Sidebar

Related Questions

Hey guys. I'm working in WinForms and trying to create a ComboBox control that
Hey. Nooby question but new with Entity. I am trying to create a new
Hey having some trouble trying to maintain transparency on a png when i create
Hey all. Newbie question time. I'm trying to setup JMXQuery to connect to my
Hey guys - I'm tearing my hair out trying to create a regular expression
hey people hope all is well.. i am trying to create a form in
Hey there! I'm doing this project and right now I'm trying to: create some
Hey all, weird question. My company has an application from another company that records
Hey everyone, I am trying to run the following program, but am getting a
Hey everyone. I'm trying to make a swing GUI with a button and a

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.