Skip to the content.

ADR 001 — Django + PostgreSQL as Core Stack

Date: March 2026 Status: Accepted Author: Ezinna (Founder)


Context

AgriOps requires a backend framework and database capable of supporting a multi-tenant SaaS platform with security-first architecture, complex relational data models, and a clear path to a REST API layer. The platform targets agricultural SMEs and cooperatives in Sub-Saharan Africa and South Asia, with compliance requirements (EUDR) driving the need for robust audit trails and structured data storage.

The decision was made at project inception before any code was written.


Decision Drivers


Options Considered

Option 1 — Django + PostgreSQL ✅ Chosen

Pros:

Cons:

Option 2 — FastAPI + PostgreSQL

Pros:

Cons:

Option 3 — Node.js (Express/NestJS) + PostgreSQL

Pros:

Cons:


Decision

Django 6.x + PostgreSQL 15 is the core stack for AgriOps.

Django’s batteries-included approach, security defaults, and mature ecosystem make it the correct choice for a solo founder building a security-first SaaS platform. PostgreSQL’s advanced features — JSONB for geolocation data, readiness for PostGIS, row-level security — make it the only viable database choice given the EUDR compliance and multi-tenant requirements.


Consequences