Menu

Day 78 of #100DaysOfCode — Introduction to Flask: Setup and First App
📰

Day 78 of #100DaysOfCode — Introduction to Flask: Setup and First App

DEV Community·M Saad Ahmad·7 months ago
#DUc5bDBI
Reading 0:00
15s threshold

Django learning is done, DevBoard is still being finished in parallel, and today, for Day 78, Flask starts. Flask has a reputation for being the opposite of Django in almost every way; where Django gives you everything, Flask gives you almost nothing and lets you choose. Today I set it up, understood what makes it different, and got a first app running.

Flask vs Django — The Key Difference

Before writing a single line of Flask, it's worth understanding the philosophy difference because it changes how you think about everything.

Django is batteries included . You get an ORM, an admin panel, authentication, form handling, and a templating engine, all built in and all opinionated about how you should use them. You work within Django's structure.

Flask is a microframework . You get routing, a templating engine, and a development server. That's essentially it. No ORM, no admin panel, no built-in auth. You pick the tools you want and wire them together yourself.

Neither is better.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.