开发者

django and sqlalchemy

开发者 https://www.devze.com 2022-12-21 12:55 出处:网络
I\'m fairly new to Django and have a basic question: I want to use an ORM that I can work with it for Django and other python projects,so the basic quest开发者_开发知识库ion is Django ORM agnostic and

I'm fairly new to Django and have a basic question: I want to use an ORM that I can work with it for Django and other python projects, so the basic quest开发者_开发知识库ion is Django ORM agnostic and if so how can I use SQLAlchemy with it for example?

If it's not, then what do you suggest for the above problem (using ORM objects that works with both Django and outside it)?


Option 1: Use the Django ORM for other projects. Using only the DB part of Django

This works well. I prefer it.

Option 2: Use SQLAlchemy with Django. SQLAlchemy and django, is it production ready? and Configuring Django to use SQLAlchemy

This works well, also. I don't prefer it because I don't like reconfiguring Django.

0

精彩评论

暂无评论...
验证码 换一张
取 消