6 ms·
Flask - https://github.com/mitsuhiko/flask https://github.com/mitsuhiko/flask. It's small, awesome and digestible.
by nyddle 11y ago
Flask - https://github.com/mitsuhiko/flask https://github.com/mitsuhiko/flask. It's small, awesome and digestible.
- nekopa 11y agoThanks! I am also looking into using Flask soon too. I dabbled in django for a while, but too much magic was happening and I am trying to learn.
- collyw 11y agoDjango is quite transparent when you learn enough of it. But there is a lot to learn.
- nekopa 11y agoI was talking about just using django to make a web app. It is awesome in that regard. But if I'm making a web app just for learning about the issues regarding making web apps, django is not suitable because that's it's job :) But I am hoping to move into django eventually, but first I want tknow what is going on behind the curtain.
- gknoy 11y agoI agree, Django is likely not the best if you're just starting learning, and writing a webapp from scratch. Working in an existing codebase, with other devs of whom you can ask questions, is a luxury that I was very thankful for. I use Django at work, and it was my first time with Python. The beauty of Django is, IT'S ALL SOURCE. When you run it locally, you have TONS of learning options: - Get an IDE, and read the sources if you don't understand how something works. "Find-Definition" all the way down. (I heart PyCharm.) - If something's broken, you can edit it! - You can put in `import ipdb; ipdb.set_trace()` calls anywhere and get a debugging prompt! (If you don't have IPython, you can use `pdb` instead of `ipdb`... shudder.) Being able to print What Actually Gets Passed Around can occasionally be very helpful. - You can put in debugging messages at multiple points in the flow! - make a `pygrep` alias to answer "where is ..." questions: # ignore south migrations, and external libraries. # You can alter this if you care about reading libs' codebase alias pygrep='grep -rin --include=*.py --exclude=*.pyc --exclude-dir=lib --exclude-dir=migrations'
- resc1440 11y agoAlso MarkupSafe - https://github.com/mitsuhiko/markupsafe https://github.com/mitsuhiko/markupsafe It's a little bit meta, but I had lots of "wow" moments. Also, it's a nice example of using C to speed up certain operations.
- liviu- 11y agoArmin Ronacher often writes pretty and compact Python — https://github.com/mitsuhiko https://github.com/mitsuhiko
- Kortaggio 11y agoFlask was the framework that finally made web frameworks "click" for me - the biggest advantage of learning about Flask is you can build up your knowledge of web services piece by piece, allowing you to take time and fully understand each component before moving on to the next. That way you're not trying to comprehend all the "magic" that's going on behind the scenes all at once.