Upgraded to use Django 1.0.2 (app-engine patch)
Tuesday, July 7, 2009
Previously this website used Django 0.96 with Google App Engine Helper for Django (http://code.google.com/p/google-app-engine-django). Upgrading to latest version was very painful so I tried another open source lib, app-engine patch version 1.0.2.1 (http://code.google.com/p/app-engine-patch/).
This patch is very easy to use. Installation is very simple. Since my app is pretty simple, only a few things were changed in migration process:
- Changed model classes to extend db.Model instead of BaseModel
- Added table name metadata to the models to reuse existing tables. App engine helper uses model class name as table name and django seems to use "package_model".
- Changed app.yaml to point to the patch's main.py
- Changed settings.py as needed
- Replaced managed.py
Posted bynugroho at 6:35 PM
0 comments:
Subscribe to:
Post Comments (Atom)
Post a Comment