3 ms·
Is there a decent Flask bootstrap? I've never been able to get in to Flask because there's so little provide out-of-the-box. I'd be looking for user accounts, a
by pbreit 10y ago
Is there a decent Flask bootstrap? I've never been able to get in to Flask because there's so little provide out-of-the-box. I'd be looking for user accounts, admin, form handling, basic crud, sqlite, db schema/migrations.
I'd love a re-write of http://web2py.com http://web2py.com that conforms to pythonista expectations.
- jsmthrowaway 10y agoThat's Django. You'd pick Django for those, Flask if you don't need them or want to do them yourself. Werkzeug if you want to do even more yourself, which I have found useful on a couple occasions. It's the flexibility versus batteries included tradeoff, and I don't think it's a negative that Flask doesn't ship most of that. You could probably somewhat get there with a number of third party additions (gedrap mentioned some) but you might as well use Django if you find yourself needing that stuff baked in.
- klenwell 10y agoThere's also this skeleton for Google App Engine: https://github.com/GoogleCloudPlatform/appengine-python-flask-skeleton/ https://github.com/GoogleCloudPlatform/appengine-python-flas... This got me going with Flask. It's not quite everything you asked for but it lays a foundation upon which to build and explore the different features you've listed. And App Engine's free tier provides a nice platform for prototyping and simplifies deployment.
- ci5er 10y agoYou appear to be asking to turn Flask into Django, but this gets you most of the way on that specific list: - https://github.com/sloria/cookiecutter-flask https://github.com/sloria/cookiecutter-flask
- jaza 10y agoBig thumbs up to cookiecutter-flask. I've built several mid-size Flask apps with it over the past year or so, and I find that it lays a great foundation, for what is in my case a typical setup (e.g. Bootstrap based UI, SQLAlchemy based back-end, simple user accounts). It's well-maintained at the moment, too. When building a new app, first: cookiecutter https://github.com/sloria/cookiecutter-flask.git Then customise all you want.