python - Can Django's ORM be used independently? For example, when used in non-web programs
代言
代言 2017-07-05 10:34:18
0
2
934

Dear Django masters, can I ask if Django's ORM can be used independently? For example, when using
in non-web programs, I personally feel that Django's ORM is very convenient, and it also improves the readability of the code a lot. But I am currently using Django’s ORM in other programs. Is it possible and how to implement it?

代言
代言

reply all(2)
三叔

Barely never seen it, which means can’t, otherwise why is it called Django ORM

If you like independent, you should try SQLAlchemy

phpcn_u1582

Django itself is based on MTV (model-template-view) architecture.
Of course you can choose not to use model or template.
For example: for database operations, you can use native sql statements instead of models; the front end can also be completely independent, and all interactions are implemented through ajax (API).

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template