29

How can I configure Django with SQLAlchemy?

halfer
  • 19,471
  • 17
  • 87
  • 173

5 Answers5

15

You can use SQLAlchemy within a Django project with Aldjemy:

https://github.com/Deepwalker/aldjemy

Mathieu Rodic
  • 6,459
  • 2
  • 41
  • 49
Mihail Krivushin
  • 464
  • 5
  • 12
  • 1
    Aldjemy is very good - super easy to get working seems well maintained. A newer project https://github.com/shosca/django-sorcery also exists, which does most of django and has an in-progress version of django-admin as well (at the time of writing) - initial screenshots look promising. A django-rest-sqlalchemy edition also exists alongside django-sorcery – Damian Apr 04 '19 at 18:43
7

Check this:

Replacing django orm

Andrea Di Persio
  • 3,136
  • 2
  • 23
  • 23
  • 4
    Link is dead. New link to (probably) same article: https://lethain.com/replacing-django-s-orm-with-sqlalchemy/ – jacquev6 Jun 27 '17 at 07:16
3

alchemy? :)

Google links:

Macarse
  • 89,619
  • 44
  • 170
  • 229
3

Please find this little tutorial on how to use SQLAlchemy with Django

Mathieu Rodic
  • 6,459
  • 2
  • 41
  • 49
0

There are many benefits of using SQLAlchemy instead of Django ORM, but consider developing a built-in-Django choice of SQLAlchemy (to have something called a production ready)

By the way, Django ORM is going better - in Django 1.11 they added UNION support (a SQL basic operator), so maybe some day there will be no need to change ORM.

Sławomir Lenart
  • 6,284
  • 3
  • 38
  • 53