sebastian-ardila / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

Datastore clears on server reset #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GAE documentation asserts that "The development web server simulates the
App Engine datastore using a file on your computer. This file persists
between invocations of the web server, so data you store will still be
available the next time you run the web server."
(http://code.google.com/appengine/docs/python/tools/devserver.html#Using_the_Dat
astore)

However, when I run dev_appserver.py, the default location for the
datastore is in /tmp , and so my datastore clears all data on reboot.

(Semi-related note: I can route around this my using the --datastore_path
flag, but this doesn't work for manage.py, and so I wind up with different
parts of my app looking in different locations for the datastore. Some
googling has suggested to me that it's possible to specify a datastore
location in settings.py, but this does not seem well-documented.)

I'm using the 'google-app-engine-django' helper with OSX10.6.

Original issue reported on code.google.com by AllTheGo...@gmail.com on 16 Apr 2010 at 10:56

GoogleCodeExporter commented 9 years ago
The behaviour of the server is consistent with the documentation. The data is 
saved between invocations of the 
webserver. Nothing is stated about behaviour on host reboot - this is obviously 
a case where your local policy in 
regards to the handling of /tmp will apply. If you're unhappy with this default 
behaviour you need to file a bug on 
appengine itself, the helper is not doing anything special here.

Changing the location of the datastore seems to be a reasonable option for you. 
See 
http://code.google.com/p/google-app-engine-django/issues/detail?id=103 for a 
current outstanding feature 
request to improve the helpers support for this.

Original comment by mattbrow...@gmail.com on 16 Apr 2010 at 11:06

GoogleCodeExporter commented 9 years ago
I see -- thanks for clarifying!

Original comment by AllTheGo...@gmail.com on 16 Apr 2010 at 11:10