Questions tagged [app-engine-patch]

30 questions
5
votes
2 answers

app-engine-patch is dead. Now what is the best way to use Django on Google App Engine?

The app-engine-patch authors have officially marked this wonderful project as dead on their website. Over the last year a lot of people have asked what the best way to run Django on Google App Engine was, and time after time people have pointed to…
Spike
  • 5,040
  • 5
  • 32
  • 47
4
votes
2 answers

Sys.path modification or more complex issue?

I have problems with importing correctly a module on appengine. My app generally uses django with app-engine-patch, but this part is task queues using only the webapp framework. I need to import django settings for the app to work properly. My…
4
votes
1 answer

Images caching in browser - app-engine-patch application

I have a little problem with caching the images in the browser for my app-engine application I`m sending last-modified, expires and cache-control headers but image is loaded from the server every time. Here is the header part of the…
Ilian Iliev
  • 3,217
  • 4
  • 26
  • 51
4
votes
2 answers

Set parent in a ModelForm in Google App Engine

I want to create an Entity Group relationship in an Entity that is being created through a ModelForm. How do I pass the parent instance and set the parent= attribute in the ModelForm?
Iker Jimenez
  • 7,105
  • 9
  • 49
  • 46
3
votes
1 answer

Browser-based strategy game in Django/GAE. Model suggestions?

I'm creating a turn and text-based strategy game in Django on Google App Engine with app-engine-patch. The simplified concept is that each player build can several different units and buildings to improve their base and fight other players for…
3
votes
2 answers

Does Google App Engine with app-engine-patch support emailing ADMINS upon 500 errors?

Django will email ADMINS upon 500 errors. Reading app-engine-patch docs, it claims to enable mail support, but I can't tell if it does so enough to support 500 emailing. I tried it and it doesn't seem to be working, but it is a silent failure with…
dfrankow
  • 20,191
  • 41
  • 152
  • 214
2
votes
2 answers

import django settings in app-engine-patch

I have a problem with Django settings. My app runs with app-engine-patch. I added a script that runs without django, and is reached directly via the app.yaml handlers. I then get this error: File…
user375348
  • 759
  • 1
  • 6
  • 23
2
votes
2 answers

Django vs GAE + Django vs GAE + other framework

I`m looking for opinion which one is better for building web applications(web sites). I have some experience with Django, and some with Google App Engine and App-Engine-Patch for Django. And it seems to me that only Django is working faster than the…
Ilian Iliev
  • 3,217
  • 4
  • 26
  • 51
2
votes
5 answers

Django instance start under Google App Engine

After thinking quite a while about how to make a fast and scalable web application, I am almost decided to go for a combination of Google App Engine, Python+Django, and app-engine-patch. But I came across a comment in the app-engine-patch FAQ that…
1
vote
1 answer

Memcache not present in App-Engine-Patch?

I'm trying to store a date into memcache using the following code: from datetime import date from google.appengine.api.memcache import Client MEMCACHE_DATE_KEY = 'date' client = Client() def last_date(): return…
1
vote
3 answers

django logging: log is not created

I'm running my app on the GAE development server, with app-engine-patch to run Django. One of my views is bugged , so I want to log everything that happens. I added in myapp.views: import logging LOG_FILENAME =…
user375348
  • 759
  • 1
  • 6
  • 23
1
vote
2 answers

opening file: Writing is invalid mode

When executing: path=os.path.dirname(__file__)+'/log.txt' log=open(path,"w",encoding='utf-8') I get: log=open(path,'w',encoding='utf-8') File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1203, in…
user375348
  • 759
  • 1
  • 6
  • 23
1
vote
1 answer

how can i use django session in GAE

i have an app in GAE, but i have no idea about how to use django session, although i know the app-engine-patch may be helpful. who can give me a demo how to use it for session? thank you!
pyleaf
  • 371
  • 1
  • 3
  • 5
1
vote
1 answer

Send mail from app engine (anauthorization solution)

In googel app engine, if we are not using OpenID login, we can send mails like its written in API But I use OpenId Login (using Google mail) and I cant use this. But I do something like thatL Properties props = new Properties(); …
grep
  • 5,465
  • 12
  • 60
  • 112
1
vote
1 answer

Serving simple image with App Engine django patch?

How the heck do i serve a simple img without all that MediaGenerator nonsense, in Django on App Engine? I am using app engine patch. I got layout like this: django_app_engine_project_folder my_app Where should my folder for my media be? In…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
1
2