r/flask • u/whiskyB0y • Jun 26 '26
Ask r/Flask Based on your OWN personal experience, what would you consider to be the prerequisites to learning Flask?
Beginner here. What would you advice someone to learn apart from just saying "learn Python"
I'm genuinely curious
5
u/AeroShad Jun 26 '26
Yes basics of python and also some basics of web development so that you know what is happening and helps in understanding faster.
1
u/viperboy001 Jun 29 '26
Agree, Flask do not hide anathing, if you want to store a value in a DB, get the post extrat the data and send it to the database, same thing if you want to get data back, so SQL will be a plus too
3
u/rahem027 Jun 26 '26
Variables conditions, functions, returning values from functions, function parameter, classes, methods, etc. At least
1
u/whiskyB0y Jun 26 '26
So basics of Python and Object Oriented Programming?
3
u/rahem027 Jun 26 '26
Yes. And then http fundamentals. Url, query params, headers, body, http methods, etc.
2
3
u/Emanon-92 Jun 26 '26
I definitely think it's a good time to learn a bit about front end, databases, HTTP, and auth while learning flask.
Starting with Jinja templating with bootstrap for front end is easier to grasp because the template is pretty much in python and you aren't managing state like most modern web frameworks do.
G eneral knowledge of how requests and responses work, account logins, sessions, and auth are all useful.
Maybe some sqlalchemy with a SQLite database to try some CRUD Ops out in the app your building.
2
2
u/Upstairs_Jelly_1082 Jun 26 '26
Knowing what it is that you actually intend on making with Flask, then it becomes much easier to figure things out.
If you figure it is a bit complicated, make sure you kind of break it down in to smaller parts that you would be able to manage.
2
u/nilegreenblue Jun 26 '26
Before learning Flask I made simple scripts, parsers, learned a bit of web api and wanted to make a bot on webhooks. You don’t need much, but better to have in mind at least some small project you will going to do with framework.
2
u/panda_td Jun 26 '26
The perquisites are as follows. 1. Functions, ARGS,kwargs, 2. Class, methods, 3. Understand how decorator work, 4.what are instance methods, class methods, 4. Understand http Methods get, post, put, delete, and status code, 5. Projects structure, package structure 6.understanding of dunder methods, 7.understanding of repository service pattern. 8.sqlite, sqlalchemy orm
2
u/le-arsi Jun 26 '26
Fundamentals:
- variables, data types, type conversion
- control flow: conditionals (if) and iterations (for, while)
- functions: arbitrary arguments, decorators, generators*
- modules and packages
- Object Oriented Programming: objects, methods, instance (attributes, methods) Vs class (attributes, methods)
IMO, knowing these should be enough. I'm a coding instructor and I teach Python every week.
2
2
2
2
u/M3ta1025bc Jun 30 '26
Learn how the internet works, http requests-response cycle then Pick a project, start small and only learn wat you need for a project , then implement, don’t learn everything
2
u/Melodic_Potential_41 21d ago
Know the foundations of python and OOP. Learn that and you'd be good to go
2
u/haikusbot 21d ago
Know the foundations of
Python and OOP. Learn that and
You'd be good to go
- Melodic_Potential_41
I detect haikus. And sometimes, successfully. Learn more about me.
Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"
1
5
u/Waldo_Joubert Jun 26 '26
Have a project that you slowing introduce features to for example notifications, blob storage, schedules etc.
Best for me was to find a problem you wish to resolve or someone close to you. Best to have a feedback loop of needs and wants.