7 ms·
Django too seems to make things specially hard for beginners, I'm not sure why that is. I don't mean the getting started part, the doing something useful by you
by Trufa 14y ago
Django too seems to make things specially hard for beginners, I'm not sure why that is. I don't mean the getting started part, the doing something useful by yourself part after the tutorial.
- josephmosby 14y agoIMO, Django's great if you want to make something regularly published (i.e., blog, news site, etc.). But you have to get creative quickly if you want to do something else. I eventually jumped to doing more webapp2, and I know there's a devout Flask community as a Django alternative. Haven't played with enough Flask to say anything yea or nay for beginners, though.
- jspiral 14y agoI have built real applications in rails and django, and find them to be fairly similar in philosophy and power. What would be an example of something you encountered with django that required getting creative quickly, that rails handles more routinely? For me, the trickiest thing in either ecosystem to get a handle on was probably rspec. I tried to learn it by osmosis and that was probably the wrong way to go. In the end, it's worth having a DSL for writing tests and leads to nice clean readable code. When people are trying to learn rails, I point them to Rails 3 in Action and Michael Hartl's online tutorial, but still need a better reference for learning rspec. suggestions are appreciated.
- clicks 14y ago> and I know there's a devout Flask community as a Django alternative Really? Tell me where the Flask community is. I actually regretted my decision of choosing Flask over Django after 2 months of working with it precisely for that very reason. You can find tons and tons of tutorials, docs, writings about best practices from others, crowded IRC discussions, etc. for Django -- not so for Flask. But maybe I'm mistaken? I'd love it if you clue me in as to where all the Flask people are hiding.
- slurgfest 14y agodid you look at #pocoo on freenode?
- dvanduzer 14y agoI'm not sure what you're looking for in a crowded IRC discussion. The signal/noise ratio in #pocoo is quite good. Stop by sometime.
- equilibrium 14y agoThis is a good and comprehensive tutorial for beginners in Flask, http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-...
- yen223 14y agoThe way I see it, Flask is a library, while Django is a framework. Flask only serves to handle requests. Flask doesn't impose a design architecture on the webapp, which makes it a great way to turn any module into an online API. On the other hand, Django's 'batteries included' philosophy means you can deploy a generic CMS application very quickly.
- dguaraglia 14y agoI think Django's 'sin' is trying to create an almost production-ready CMS when you invoke startproject. The default project comes with authentication, admin, CSRF protection, sessions, content types... the whole nine yards. Maybe there should be a second option "barebones" that created a settings file with most features disabled by default (yes, even the Admin.) Users who just needed a simple WSGI-compliant framework could start from there instead of figuring out what stuff to disable. You'd basically be on pair with Flask, with the advantage of having access to the advanced features just by dropping stuff in your INSTALLED_APPS and MIDDLEWARE_CLASSES settings.