How to replace Django ORM with sqlalchemy

348 views
Skip to first unread message

Chen Xu

unread,
Dec 2, 2013, 4:42:18 PM12/2/13
to django...@googlegroups.com
I am planning to replace Django's ORM with sqlalchemy, does anyone know any good tutorials step by step or github repo that show you how to do it?


Thanks

--
⚡ Chen Xu

Vernon D. Cole

unread,
Dec 3, 2013, 8:30:39 AM12/3/13
to django...@googlegroups.com
The maintainers of django have discussed this question.  They all believe that it would be almost impossible to do.  The two ORMs operate differently, so that there would not be a simple "replace operation A with operation B" type of conversion.  The present ORM is too deeply embedded to be replaced.  Sorry.

Russell Keith-Magee

unread,
Dec 3, 2013, 6:06:18 PM12/3/13
to Django Users
On Tue, Dec 3, 2013 at 9:30 PM, Vernon D. Cole <verno...@gmail.com> wrote:
The maintainers of django have discussed this question.  They all believe that it would be almost impossible to do.  The two ORMs operate differently, so that there would not be a simple "replace operation A with operation B" type of conversion.  The present ORM is too deeply embedded to be replaced.  Sorry.

This is all true. 

However, it's important to remember that Django code is also just Python code, so if you want to use SQLAlchemy in a Django project, you can Just Use It. You won't get any deep integration with the database layer (for example, ModelForms won't work), and you won't be able to exploit the rich community of third-party Django libraries and apps, but you will be able to access your database using SQLAlchemy.

Yours,
Russ Magee %-)
 


On Monday, December 2, 2013 10:42:18 PM UTC+1, Chen Xu wrote:
I am planning to replace Django's ORM with sqlalchemy, does anyone know any good tutorials step by step or github repo that show you how to do it?


Thanks

--
⚡ Chen Xu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c31bd167-54a5-4d96-80e1-36f83055c755%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages