DEV Community

Bret
Bret

Posted on

after the basics of Python, should you lean Flask or Django next?

After the basics of python,
Should you learn Django next? Or Flask?

How much of a need is Data Science?

Top comments (15)

Collapse
 
joshuaschlichting profile image
Joshua Schlichting

I was in a similar boat at one point and decided to go with Django. This experience was a a positive one, but as time went on I regretted not choosing flask for its simplicity. (You may want to consider using FastAPI instead of either of these.)

If you feel that your skill set is still in its infancy, you may benefit the most from something that has a well defined structure, like Django.

Collapse
 
yobretyo profile image
Bret

I’m going with Django first, I’m liking it allot more now

Collapse
 
yobretyo profile image
Bret

There’s more steps, but it seems to be better put together

Collapse
 
darkain profile image
Vincent Milum Jr

I'm gonna be "that guy"

Neither, learn another language instead.

Python isn't bad, neither are those frameworks (okay, I might not always 100% agree with this)... but from 20+ years experience, I can tell ya that knowing more languages than specific libraries means more transferable and forward thinking knowledge.

Keep the focus on solving problems, and match the tools best suited for the problems. Don't chase the rabbit down the hole of "OH, this blog post mentioned X" or "Y is really popular right now" - because in the real world, none of that actually matters, and all that really matters is getting the job done as best as possible.

Collapse
 
yobretyo profile image
Bret

I know React and Vue well, but I’m a “entry” position, it has “preferred”, 3-5 years. But I’m at over 1 year

Collapse
 
max236 profile image
Mageshwaran

Both has its own pros, once you learned one of them it will be easy for you to learn the other one. Once you understand basics of server concepts and http protocols you can learn anything.
If you are looking for a job then go with the technology which is high demand in your country.

Collapse
 
whoismaruf profile image
Maruf Khan

To work with data science, you should choose Flask for its vast popularity in microservices and performances. But, when you're thinking about any business/corporate/enterprise level web application or backend, you can go with Django.

In the end, I suggest you learn both of them. They share almost a similar methodology for building web services. The small difference is, In Django, you have everything pre-configured and In Flask, you have to build those chunks of services on your own to make your application.

Collapse
 
yoanbello profile image
yoanbello

I prefer flask, you can be in total control of your application and only you install the packages that you need.

Collapse
 
yobretyo profile image
Bret

How about a option of backend as well? Flask seems more simpler, but for web, I think I prefer Vue and React.
How do you use a package? Is that a module?

Collapse
 
yoanbello profile image
yoanbello

Flask is a framework for the backend with python, react and vue are for the front. A package is like a module

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

You have to install, for example, flask-sqlalchemy.

But, do you really need a full blown thing like Flask, for data science?

Collapse
 
yobretyo profile image
Bret

Thank you!
Between a ENV and installs,
The Django tutorial dosnt seem very precise. I’m going to do a test through one way of starting a project on a external drive, so if I mess up, it’s just a delete away

Collapse
 
ikirker profile image
Ian Kirker

After the basics, you should learn how to use virtualenvs and a testing framework (probably pytest).

Collapse
 
yobretyo profile image
Bret

I’m using Env now 👍

Collapse
 
yobretyo profile image
Bret

I used Django a little.... i like it, I like how tutorials are “using” what the -basics- you learn are. Like, installing “appsL, it’s actually using the classes you make