Answer the question
In order to leave comments, you need to log in
Is it possible to write the same models for relational and document-oriented databases in Django?
When I write models in Django, the framework connects to the database for me, creates tables, etc. I
recently read that Django can work with MongoDB, which raised the question - is it possible to use the same models for, like PostgreSQL and MongoDB?
Answer the question
In order to leave comments, you need to log in
Django can't work with MongoDB. To do this, they made a fork of django-nonrel, but I personally have doubts about its performance and the meaning of its use.
yes, orm built into junk can't work with mongo. but no one bothers to use any other orm. Of course, you won’t get buns in the form of an automatic admin panel, but you can easily work with Monga. the same models - no. there seems to be no orm that would work with sql and no-sql at the same time. this is generally a strange desire.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question