Skip to main content

3 posts tagged with "django"

django tag description

View All Tags

Supabase Django integration

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Supabase Integration with Django

Here's a guide to integrating Supabase with a Django application. We will use the requests library to make API calls to Supabase, as there is no official Django-specific Supabase ORM.

Managing database queries in Django applications and where save the queries

· 8 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

As a Django app grows, managing database queries effectively is crucial for maintainability, performance, and testability. Storing them haphazardly is a recipe for disaster. The best place to store your queries is on custom Model Managers and QuerySets. This approach keeps your logic organized, reusable, and closely tied to the data it operates on. Here are the main variants for storing your queries, from the least recommended to the best practice.