4 ms·
How come?
by sprite 12y ago
How come?
- andrewfong 12y agoThe big issue is that Django's ORM is built around traditional relational databases, while Google App Engine is not. You can certainly make the two work well enough together if you know what you're doing, but for someone just getting started, it's an unnecessary exercise in frustration. If you want to use GAE, I recommend just starting with web.py or whatever is the default framework there. It's fairly easy to learn. If you need a place to host Django, a good chunk of the Django documentation is dedicated to discussing how to do that. There's also Heroku and what not as well.
- sprite 12y agoSo django-nonrel doesn't work well with GAE? https://github.com/django-nonrel/djangoappengine https://github.com/django-nonrel/djangoappengine
- andrewfong 12y agoI haven't looked in a long time, but it probably works well enough. My point is that much of the "batteries included" aspect assumes a relational database. See, for example, the caveats django-norel makes with respect to the bundled admin interface (http://djangoappengine.readthedocs.org/en/latest/admin.html http://djangoappengine.readthedocs.org/en/latest/admin.html). I suspect there are implications for the built-in user authentication and permissions app as well. That's not to say this isn't workable -- it's just that a lot of the Django plugins, tutorials, and documentation out there will be far less useful to you if you're starting with GAE.
- bad_user 12y agoWhile not being able to use Django's ORM (or admin) is frustrating, you can still use Django's API, like routes, middleware, templates, forms and so on. That's far from useless and Django on GAE is actually as default as it can get. I actually have an older project made with Django for GAE. Haven't updated it and haven't tested it in a while, but it should still work and one might find it useful for inspiration: https://github.com/alexandru/TheBuzzEngine https://github.com/alexandru/TheBuzzEngine
- softinio 12y agoTotally agree with Andrews reply. And this is just one of the annoyance. Even simple things like uploading a file to GAE will present you with new unecessary challenges. One thing though, you can use the Django Orm on GAE if you are using Google Cloud SQL as your database instead of the data store that GAE comes with. This will prove more expensive for you though.
- clemesha 12y agoThis project is pretty great for using Flask on App Engine: https://github.com/gae-init/gae-init https://github.com/gae-init/gae-init - I've been using it for a while now, and it's been smooth sailing. Also, it's actively maintained and continually improving.
- sprite 12y agoThanks will check it out.