Questions tagged [djangoappengine]

djangoappengine is a pluggable Django app that allows you to use App Engine's datastore with Django.

djangoappengine is a pluggable Django app that allows you to use App Engine's datastore with Django.

It provides the necessary plumbing to query the datastore, and custom management commands for deploying and running the SDK.

97 questions
23
votes
3 answers

Google App Engine NDB custom key id

When I create an object with ndb's method put it creates the key automatically of the type Key(kind, id) where id is a number. All over the documentation it shows that you can use a string for the key's id but I couldn't find out how to do this…
andrei
  • 877
  • 8
  • 18
21
votes
5 answers

"key cannot contain a space" error while running docker compose

I am trying to deploy my django app to app engine using dockerfile and for that after following a few blogs such as these, I created a docker-compose.yml file but when I run the docker compose up command or docker-compose -f…
xis10z
  • 671
  • 1
  • 5
  • 11
9
votes
2 answers

Google app engine users Auth: Djangoappengine Vs Web2py Vs Webpy

I'm going to develop a small web application on Gae with a registration section, login\logout and stuff like that. Since Google app Engine does not support session out of the box and I don't want to restrict access using google Accounts, I am forced…
systempuntoout
  • 71,966
  • 47
  • 171
  • 241
7
votes
4 answers

Django App Engine: AttributeError: 'AnonymousUser' object has no attribute 'backend'

I am using djangoappengine. When I try create a new user, authenticate that user, and log them in, I get the following error AttributeError: 'AnonymousUser' object has no attribute 'backend'. My code is simple and looks like: user =…
speedplane
  • 15,673
  • 16
  • 86
  • 138
6
votes
3 answers

Properly Securing GAE Task Queue URLs (without using app.yaml)

I want to secure my Task Queue URLs against malicious access. In the views that the Task Queue requests I've got: if not users.is_current_user_admin(): return HttpResponse(status=403) But my Task Queues are receiving 403 errors! I was under the…
Chris W.
  • 37,583
  • 36
  • 99
  • 136
6
votes
2 answers

/_ah/queue/deferred strange import error

I have a django 1.5 running on Google App Engine using the djangoappengine module for the stitching. Everything works fine, except that about a half of the calls to /_ah/queue/deferred raise the following import error: Traceback (most recent call…
Tzach
  • 12,889
  • 11
  • 68
  • 115
6
votes
3 answers

ndb Query partial string matching

This seems like it should be an easy question. But the docs don't seem to answer it. Using the example from them, I want to do this: Account.query(Account.title == "best") Except I want to match partial strings as well. So in this scenario: acct =…
mehulkar
  • 4,895
  • 5
  • 35
  • 55
4
votes
1 answer

Django lookup types ("iexact", "icontains", "month", etc.) not working in Django nonrel (using dbindexer)

I created an app using 'django nonrel' and am using 'django dbindexer' to allow for normal Django lookups. The settings file is as below myproject/settings.py from djangoappengine.settings_base import * import os DATABASES['native'] =…
4
votes
2 answers

Django Nonrel - Working around multi-table inheritance with noSQL?

I'm working on a django-nonrel project running on Google's AppEngine. I want to create a model for a Game which contains details which are generally common to all sports - i.e. gametime, status, location, etc. I've then modelled specific classes for…
3
votes
3 answers

submitting a django form using javascript

ok so have this snippet of code -
Submit
i am submitting a form using an href…
ZiGiUs
  • 394
  • 4
  • 15
3
votes
4 answers

Using transactions on Django AppEngine

The AppEngine documentation has a few examples of transactions, using the AppEngine native technique to make transacted queries on native objects. Per the docs at http://www.allbuttonspressed.com/projects/django-nonrel [1], I'd like to use AppEngine…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
3
votes
1 answer

django dynamic translate on AppEngine

I need dynamic translation in django on AppEngine. I found nice django modul for dynamic translations: django-rosetta, but it open files (django.po...) and it is not allowed on AppEngine. Exist some other translate modul where is compatibile (or…
3
votes
2 answers

XMLHttpRequest error

I have a Google App Engine app that works fine in production when everything is running on one host, and mostly works when the web app is running on a separate host. All queries to/from the server (GET, POST, PUT, DELETE) are behaving as expected.…
3
votes
3 answers

How to get the dirty factors of an NDB Model in pre_put_hook

Is it possible to figure the dirty factors of an entity in a pre_put_hook? I want to conditionally execute some callbacks based on what is being put. E.g. if an entity has a particular property changed, I want to send a mail notification. I can do…
mehulkar
  • 4,895
  • 5
  • 35
  • 55
2
votes
4 answers

Django, post_save signal recrusion. How to bypass signal firing

I have a situation where when one of my models is saved MyModel I want to check a field, and trigger the same change in any other Model with the same some_key. The code works fine, but its recursively calling the signals. As a result I am wasting…
Nix
  • 57,072
  • 29
  • 149
  • 198
1
2 3 4 5 6 7