#django-orm

[ follow ]
fromPaolo Melchiorre
5 days ago

Django ORM Standalone: Querying an existing database

For a long time I wanted to document something I have done many times in production systems but never explained clearly: using Django ORM as a standalone module to connect to an existing database. In my work I have often dealt with legacy systems where the only reliable source of truth was the database itself. In those situations, Django ORM became my Swiss army knife.
Web frameworks
Software development
fromPeterbe
2 months ago

Autocomplete using PostgreSQL instead of Elasticsearch - Peterbe.com

PostgreSQL with a GIN trigram index and Django ORM bulk-indexing can replace Elasticsearch for small-scale autocomplete/typeahead efficiently and safely.
fromdjangocentral.com
3 months ago
Web frameworks

How to Perform OR Queries in Django ORM

DRF serializer.data returns an OrderedDict by design; Django NOT queries use the tilde (~) with Q objects; disabling adblocker supports site maintenance.
Web frameworks
fromPaolo Melchiorre
4 months ago

Django: one ORM to rule all databases

PostgreSQL, SQLite, MariaDB, MySQL, and Oracle offer varied Django ORM feature support; choose backend based on feature parity and project requirements.
[ Load more ]