I would like to automatically upload some test data to the AppEngine datastore when a local copy is launched by one of my developers. I know that the volume loader allows you to do this from the command line, but I'm looking for something automatic. Inevitably, we will forget to load data when we clear test copies of the data warehouse.
Currently, I'm just checking for the presence of a known object when loading the main page and calling a function to insert data when this object is not found. It seems wasteful - it is called every time someone gets on this page.
An ideal solution would be to not affect the deployed version of the app on appspot.com and add dirty code to the central path of the code.
source
share