Answer the question
In order to leave comments, you need to log in
Which one to choose or Django vs Flask?
Hello.
I'm going to start writing a small project for myself, for experience.
All this is in Python.
Knowledge of Django - basic, no experience.
Knowledge of Flask - a little above the basics, the experience of writing a small blog with registration and comments.
What would be better to build a project on, in order to bring it as close as possible to the real one, and what would not be ashamed to show when applying for a job.
Non-standard links are welcome (I can find the documentation myself).
Z.Y. When I did a Flask project, I used sqlite. What to use now?
Answer the question
In order to leave comments, you need to log in
Flask is a microframework.
Django is such a fairly massive framework. More in demand, more capable.
Knowledge of Flask - a little above the basics, the experience of writing a small blog with registration and comments.This is a very basic level. I advise now to try Django and compare.
What to use now?Universal solution - PostgreSQL.
Today, the situation is such that Django is much more in demand on the market than Flask. However, for writing really complex combat projects, it is better to take Flask, in particular, due to the rather weak ORM in Django, and also because Django is a very monolithic framework, which will cause problems in complex cases when more is needed. what Django provides, or what it offers, is in some way not up to the task. The power of Flask here is that it allows you to use different tools for tasks, linking them as you need, sometimes even implementing components for yourself. But, there will be overhead costs here - writing a binding, the need to be able to design a system and understand more deeply what is happening (but in large and complex projects this is already necessary.)
For self-education in the spirit of "I want to be able to python", flask is better. If you are sure that you know python well, then pick the django.
In the market, they are in the same demand in the minds, they just want janga more often on the web (okay, much more often). But a lot of apish-backends and stuff are written in flask.
Use Percona Mysql or Postgre.
If I had a choice only between these two frameworks, I would choose Django. Because I just want to sit down and make a project, and not mess around with setting up the integration of a bunch of components with a microframework.
If the choice were not so limited, I would choose Pyramid , because only there everything is done as expected and in general, it is clear that more serious people wrote it with a more serious approach.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question