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

The Archive Base Latest Questions

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

When using Google App Engine with Django-nonrel, is there any way to take advantage

  • 0

When using Google App Engine with Django-nonrel, is there any way to take advantage of the Async Datastore API when I declare my model classes with the Django API?

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

    Ok, I’ve investigated a bit more and found an alternative way to deal with having a Django Model (i.e.: all Django features there) and still having access to the async API…

    Mainly, using the datastore directly:

    from google.appengine.api import datastore
    

    and I already had methods to convert all my models to/from a json dict, so, it was mostly a matter of discovering how Django-Nonrel did it behind the scenes:

    E.g.:

    Considering a ‘Project’ class with to_json and from_json methods (i.e.: create from a dictionary)

    For doing a simple query (it seems Run() will do the work asynchronously, so, one could do the query.Run() and later start another query.Run() and both would work at the same time):

    query = datastore.Query(Project._meta.db_table)
    for p in query.Run():
        p['id'] = c.key().id() #Convert from app engine key
        print Project.from_json(p)
    

    Now, using the API to get an object asynchronously:

    from djangoappengine.db.compiler import create_key
    async = datastore.GetAsync(create_key(Project._meta.db_table, project_id))
    p = async.get_result()
    p['id'] = c.key().id() #Convert from app engine key
    print Project.from_json(p)
    

    So, it’s possible to retain the model with the Django structure and when needed some wrappers do the needed work asynchronously.

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

Sidebar

Related Questions

When using Google app engine is there any benefit to use a CDN if
I'm using the Django nonrel project on a google app engine project running locally
I'm using Python 2.7 and django-nonrel for running Django projects on Google app engine.
I am using django-nonrel on the google-app-engine. When I'm posting a foreign character, in
I'm using Django-nonrel on Google App Engine and have the following models (they are
Does Django signals work on google app engine ? I am using django-nonrel. Thanks
I'm using Google App Engine's version of Django templates in Python. Is there a
I'm using Google App Engine with their webapp framework. Is there something like Django's
I am trying to build an example app in Google App Engine using django-nonrel.
I'm using Google App Engine and Django templates. I have a table that I

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.