I want to integrate Django and CrateDB. Unfortunately there is no support for the Django database by CrateDB.
Dear Zaman,
thank you for writing in. We had a feature request about supporting Django almost ten years ago, but apparently, it never materialized.
- Feature Request: Django ORM driver · Issue #158 · crate/crate-python · GitHub
- [DRAFT] First roughly working Django backend by amotl · Pull Request #430 · crate/crate-python · GitHub
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
- PyPI: cratedb-django – CrateDB connector for Django
- GitHub: GitHub - surister/cratedb-django: CrateDB backend for Django
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