Answer the question
In order to leave comments, you need to log in
What to choose: Django or Flask?
Hello!
I set myself the task of learning how to write web applications in Python. True, the question arose: which Framework to choose? At the moment, the choice fell on Django and Flask.
At the moment, I want to implement a blog + community project, that is, something similar to Habr and other similar projects.
I ask you to help me choose the most suitable of these Frameworks that would satisfy the task and be suitable for a person who is just starting to learn the whole essence of python web applications. Perhaps you have more suitable solutions, for example, other frameworks, then I'm ready, with pleasure, to listen.
PS For learning Django, I have the Django 2 by Example book, and for Flask, Miguel Greenberg's book. The first one is in English, the second one is in Russian. Perhaps you know which of these books is more suitable for a beginner.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Let's start with Django. Firstly, the basic structure of the project is generated, and secondly, everything you need is in the kit.
Learn to write in jung - learn to write in flask, they are very similar.
And as soon as you screw the orm, template engine, wtforms in the flask, spread the code into separate applications, then in the end you will get Django
flask - book by Miguel Greenberg
he already has a new book and there are articles in Russian on Habré
https://habr.com/post/346306/
do it in dzhang, in parallel pick the flask
in dzhang, this guide is normal (the link may be a little roskompozor):
https://simpleisbetterthancomplex .com/series/begin...
It was easier for me on django, everything is already ready for him and all that remains is to watch method after method in practice. And on the flask it was difficult for me, as it required me to learn the same sqlalchemy separately.
If you write a large service (such as Habr) - this is django. Flask is a microframework where everything else is connected additionally, it is needed for small projects.
Flask when you know you don't need what Django has.
Flask, with everything you need to develop a web project == Django. That is, in order not to get drunk - take Django.
Django - many things out of the box, fast development, great framework with great features, community.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question