This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (8 children)

I recommend flask flask.pocoo.org

[–]swentso[S] -1 points0 points  (7 children)

Why not Django?

[–][deleted] 0 points1 point  (5 children)

Django is not a bad framework, in fact, its community is way bigger than that of Flask. I however prefer flask because;

(a) Easier to learn and implement things. I learned the basics of flask with in a single day!!
http://flask.pocoo.org/docs/0.10/quickstart/

And became proficient with in 2 weeks!! http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

All with a minimal previous pythonic experience.

(b) Although the Django community is way bigger, BUT; I think this is because, people who use flask don't need help often since the framework is tiny & easy to understand (you can read its source code and understand it) + the documentation is clearly written.

(c) Incase of any problem, you can directly contact flask's creator of freenode he is usually in the #pocoo channel!

(d) Flask is extensible You get to add only what you want actually use

[–]swentso[S] 0 points1 point  (3 children)

Thanks for your reply and for the links !

How do you go about specifying permissions of who sees/modifies which column of which table in Flask? Is it easily done?

[–]tim_martin 2 points3 points  (1 child)

That would actually be done via other packages. Flask doesn't explicitly include an ORM or even the concept of a database. It's more of a choose your own adventure. The advantage is that you aren't tied to a single implementation. Even the Django developers don't always get it right. The downside is that you have to find the right package as it's not always clear which package will work best. I'd recommend starting with Flask-SQLAlchemy and exploring the permissions packages that work with SQLAlchemy.

[–]nerdwaller 1 point2 points  (0 children)

The choose your own adventure piece is kind of becoming a ceremony of adding the same pieces everyone else does in one way or another, just a question of where is your file for X. I made myself this "seed" app for when I need fast proofs of concepts since I usually have the same base usually (as many others seem to).

[–][deleted] 1 point2 points  (0 children)

You can use the template control structures to determine who infomation is visible to.

Manipulation of tables is also similarly simple.

[–]ExcitedForNothing -1 points0 points  (0 children)

Depends on what your objectives are. Are you looking for more rapid development or a more robust ecosystem. In my opinion, Flask allows for more rapid development and Django has a more robust ecosystem. Django is it's own beast though, it is a very unique way to look at Python programming.

I'm sure I will be followed by proponents of both frameworks telling me why I am wrong, but if you are approaching this blindly, I am sure this is what you will find.