Can python + django use both mongodb and mysql database engines?

Source: Internet
Author: User
Dear friends, I used to create a project: Because tables are not associated, we use non-relational database mongodb. the project development environment uses python + django and is deployed on ubuntu. At that time, pymongo was used to connect python to mongodb, and the engine was used to connect django to mongodb. Now we have a new requirement, and there are associations between tables. Therefore, I am going to add a mysql database. May you ask me if django can display the table content in mongodb and the table content in mysql at the same time when presenting the webpage? How to configure the... djangomysqlpythonmongodb database in settings. py

Dear friends, I used to create a project: Because tables are not associated, we use non-relational database mongodb. the project development environment uses python + django and is deployed on ubuntu. At that time, pymongo was used to connect python to mongodb, and the engine was used to connect django to mongodb.
Now we have a new requirement, and there are associations between tables. Therefore, I am going to add a mysql database.
May you ask me if django can display the table content in mongodb and the table content in mysql at the same time when presenting the webpage? How should I configure the database in settings. py?
Hope you can give me some advice. thank you very much.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.