Integration of Django and CrateDB

I want to integrate Django and CrateDB. Unfortunately there is no support for the Django database by CrateDB.

1 Like

Dear Zaman,

thank you for writing in. We had a feature request about supporting Django almost ten years ago, but apparently, it never materialized.

We will try to enqueue it into our processes, but we can’t promise any outcome, other that it probably will not happen today or tomorrow.

On the other hand, please let us know about any eventual capacities on your end. We guess that GH-430 is not a bad start, and may just need a few refurbishments. We are always happy about contributions from the community.

With kind regards,
Andreas.

Hi again. @surister conceived a proper Django adapter package for CrateDB, cratedb-django. Thank you!

About

Connector to use CrateDB as a database in Django ORM.

Sources

Setup

Install the package from PyPI.

pip install cratedb-django

Configure

In your Django project’s settings.py you can now use cratedb_django in DATABASES engine. Later in the models you need to import CrateModel and use it like BaseModel.

Examples: settings.py, models.py