I’ve been using sqlite with django for like a year now, but I kinda don’t like sql and mongodb looks awesome and easy to use. But I saw online that mongodb doesn’t quite work well with django orm,
should i just continue with sql, or mongodb is a viable option?
I want to use the database for an e-commerce application with django backend and react frontend…
Welcome @saish660 !
Absolutely. Understanding the relational model may take some work, but it’s a well-proven technology.
Additionally, Django is designed to work in a relational DB structure. Yes, there are modules (e.g. Djongo) that provide an interface layer, but it’s not a smooth transition and there are too many intrinsic limitations for my taste.
This doesn’t mean that you can’t use MongoDB with Django. However, I would limit my usage to the areas where it makes sense - and never as a key part of the Django infrastructure.
You don’t need to take my word for it - a general web search comparing MongoDB and any relational database will show you articles explaining why MongoDB would not be the database-of-choice for any transactional type of application (e.g., e-commerce).