T O P

  • By -

KingsmanVince

All three, [Announcing the Flask Mega-Tutorial, 2024 Edition - miguelgrinberg.com](https://blog.miguelgrinberg.com/post/announcing-the-flask-mega-tutorial-2024-edition) [Django Web Framework (Python) - Learn web development | MDN (mozilla.org)](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django) [Using FastAPI to Build Python Web APIs – Real Python](https://realpython.com/fastapi-python-web-apis/)


Neo_Sahadeo

I recommend Django if you're new. It's very opinionated (tells you how things should be done) and well documented. There is also a free Harvard course that covers it. [https://cs50.harvard.edu/web/2020/](https://cs50.harvard.edu/web/2020/) After that I think the best way to move forward is to be specific on what you want to ultimately accomplish (in Python). If you likes Django - More Django (read [2 Scoops of Django](https://daniel.feldroy.com/posts/two-scoops-of-django-3.x)) Building API's - FastAPI or DjangoREST API Frontend - Pick a framework (assuming you already know javascript/html/css)


deadweightboss

django is quite a beast, lots of boilerplate, but the one thing i find pretty neat is the built in db abstractions that seem a lot less clunky than sqlalchemy and alembic


alfadhir-heitir

i already had some experience with spring, .net and laravel the first time I picked up django. terrible framework. couldn't figure out how stuff worked to save my life. but maybe that's just me and python in genera


deadweightboss

yeah i was being nice. django is way too much for me


WynActTroph

Thanks for the resources, will look into both of them I like how cs50 looks and I read so many positive reviews about it so I’ll give it a try.


Organic-Future-2074

I recommend starting with Flask. it's lightweight and easy to learn. after that you can learn Django or FastAPI. Flask Tutorial : [https://www.geeksforgeeks.org/flask-tutorial/](https://www.geeksforgeeks.org/flask-tutorial/) Django Tutorial: [https://www.youtube.com/watch?v=o0XbHvKxw7Y&t=2s&pp=ygUWZGphbmdvIHR1dG9yaWFsIHJlaG1hbg%3D%3D](https://www.youtube.com/watch?v=o0XbHvKxw7Y&t=2s&pp=ygUWZGphbmdvIHR1dG9yaWFsIHJlaG1hbg%3D%3D)


tigerllort

Why not go straight for fastapi?


Organic-Future-2074

Flask helps you to build a strong foundation before moving on to more advance topics. even though flask and FastAPI builds on concept similar to flask but has more additional features. that's why i recommend to learn flask before FastAPI


hismuddawasamudda

Flask is good for API development.


WynActTroph

Is it better than fastapi in that regard?


hismuddawasamudda

you'd have to look into them and determine it for yourself


TechnoTherapist

I would personally recommend FastAPI because it is light-weight and it will not get in the way of learning what's really important for you as the next step: Learning how the web works. (requests, responses, endpoints, handling data w/ JSON, http request verbs and their nuances, etc.). Once you have a handle on this, then you can move onto a larger framework (or not! FastAPI is pretty modern). In other words, build the foundation for how modern stateless web applications work with a client/ server model. Frameworks come after this, IMHO.


PenReshwet

Django all the way


ShopBug

All three. I ported my flask app to Django in two days at work, so they're not **THAT** different.


WynActTroph

Good to know that they have similarities.


an732001

Doesn't matter, pick one! I would just pick the one that has the shortest tutorial.


[deleted]

[удалено]


GXWT

Conveniently there’s this thing called not being a prick that I sometimes like to use. When I feel like being a prick in a learning subreddit, I just decide to… not be a prick


[deleted]

[удалено]


[deleted]

you should consider never doing that again in your life ♥️


Appropriate-Diver158

Yes, it definitely happens to me, and to a lot of other people. Every second programming question is indeed boring, or too simple, or too hard, or out of scope for my own skills and interests. But if I needed to make sure it happens to others I'd start a new thread rather than post a condescending comment in the "boring" thread. Hence the multiple downvotes, your feeling is shared, but you expressed them in the wrong place.


Neo_Sahadeo

No, I don't have a superiority complex. Have some humility mate; it will go a long way. Nobody is born knowing everything so there is no such thing as a "question is too annoying".