Prerequisites
Before you begin, ensure you have the following installed on your system:- Python 3.12+
- PostgreSQL 15+ (Docker recommended)
- Redis (Optional for dev, required for production/caching tasks)
- Git
Step-by-Step Installation
Step 1: Clone the repository
First, clone the project to your local machine:Step 2: Set up PostgreSQL (Docker method)
The easiest way to get the database running is via Docker:Step 3: Create a Virtual Environment
Set up a Python virtual environment to isolate project dependencies:Step 4: Configure Environment Variables
The project uses.env.dev for local development. Copy the example file:
DATABASE_URL in .env.dev matches the credentials used in your PostgreSQL setup (postgres://devuser:devpass@localhost:5432/devdb).
Step 5: Database Migrations
Because the system usesdjango-tenants, you must migrate the public schema first, then the tenant schemas.
Step 6: Create the Public Tenant
For the multi-tenant system to work, you must create a public tenant which acts as the main routing domain:localhost) and name.
Step 7: Run the Server
Start the Django development server:http://localhost:8000 to interact with the API or admin portal!