DEV Community

Discussion on: Flask vs. Django?

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

what do you mean by "Flask querying methods"?

Collapse
 
imronlearning profile image
Michael Learns

I think it should've been querying capabilities 😅by it I meant that Flask's querying capabilities are a bit limited compared to Django.

You can refer to this link for a list of Django's Queryset API's: docs.djangoproject.com/en/2.1/ref/...

And here for Flask: flask-sqlalchemy.pocoo.org/2.3/que...

As you can see Django has more options available for you compared to Flask.

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

no i mean, flask does not have in-built querying capabilities.

flask-sqlalchemy is just a wrapper for sqlalchemy, a normal python orm

Thread Thread
 
imronlearning profile image
Michael Learns

Oh! Sorry, I failed to mention that. 😅 Flask on its own does not come with querying capabilities. I recall having to install flask-sqlalchemy via pip in order to do querying from my database. Thanks! 👍

Thread Thread
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

i appreciate your article though, having written it, now you know more about the matter!

Thread Thread
 
imronlearning profile image
Michael Learns

Yes definitely! I've learned more about Flask and Django through it 😄 thanks for clarifying this too!