4 ms·
Not super relevant, but I love Flask. It's so nice to quick simple webapp for small applications like this. I love Django too, but https://github.com/micahfle
by civilian 12y ago
Not super relevant, but I love Flask. It's so nice to quick simple webapp for small applications like this. I love Django too, but https://github.com/micahflee/onionshare/blob/master/onionshare.py https://github.com/micahflee/onionshare/blob/master/onionsha... would be at least be half a dozen files in Django.
- deleted 12y ago[deleted]
- StavrosK 12y agoYou can have single-file Django projects, Flask style. They even work!
- civilian 12y ago"They even work!" Hah, that's reassuring? Here's what I found when I googled for it: https://github.com/readevalprint/mini-django https://github.com/readevalprint/mini-django
- StavrosK 12y agoThat looks about right. There's no reason for it not to work, really, Django doesn't have much magic.
- eric_bullington 12y agoI'm kind of getting back in to Flask after a flirtation with Go. I think I'll continue to use Go for APIs but for quick web apps there's nothing like Flask, and it's getting pretty decent performance now with PyPy (and PyPy with Gevent now!). I've actually been working today polishing up a skeleton app I use for my Flask apps for other devs to use -- still rewriting but I'll throw this out there since it's already pretty usable for small-to-midsized projects (MIT license): https://github.com/esbullington/flask-bootstrap https://github.com/esbullington/flask-bootstrap
- odonnellryan 12y agoJust curious, why do you do your URL routing that way? https://github.com/esbullington/flask-bootstrap/blob/master/app/__init__.py#L47 https://github.com/esbullington/flask-bootstrap/blob/master/...
- eric_bullington 12y agoWell, I think that as your app grows, it's not a bad idea to keep routing separate from the controllers. I may even put them into their own file as I extend this project to support blueprints.