4 ms·
A bit offtopic, but I was wondering what some good books/resources for learning django are? I've mostly been using rails or sinatra for web stuff, but planning
by sprite 12y ago
A bit offtopic, but I was wondering what some good books/resources for learning django are? I've mostly been using rails or sinatra for web stuff, but planning on doing a project that I want to host on GAE and write with django and django rest framework.
A friend recommended: http://www.amazon.com/Two-Scoops-Django-Best-Practices/dp/098146730X/ref=sr_1_1?s=books&ie=UTF8&qid=1403886617&sr=1-1&keywords=django http://www.amazon.com/Two-Scoops-Django-Best-Practices/dp/09... but looking for other recommendations as well.
- bad_user 12y agoThe documentation is like a book. Start with the tutorial: https://docs.djangoproject.com/en/1.6/ https://docs.djangoproject.com/en/1.6/
- softinio 12y agoDo not use Django with GAE. Really pointless to do this. You are better off with Frameworks like Flask with GAE in my experience. To get the full benefit of Django you really need to avoid GAE in my opinion
- sprite 12y agoHow 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.
- deleted 12y ago[deleted]
- actionscripted 12y agoI'd start with Django's own tutorials and docs. Then check out Two Scoops of Django for 1.6 (Two Scoops Press) followed by Pro Django (Apress).