Skip to Content

Installation

Choose your path: Quick (download ready project), Full (complete setup), or Manual (fork & customize).

Quick Start

curl -L https://djangocfg.com/install.sh | sh

Interactive Installer

Install Django-CFG

Quick, Full, or Manual - Choose your installation path

Choose your platform

Auto-detected based on your system

Interactive Installer
Download and run the installer - it will guide you through Quick, Full, or Manual installation
Loading code...

What you'll get:

  • Quick Install: Download ready project (no setup)
  • Full Install: Complete setup with dependencies & Docker services
  • Manual Install: Instructions to fork & clone repository
Manual Installation
Prefer to fork and customize? Here's the complete manual process
Loading code...

⭐ Don't forget to fork and star the repository!

Fork on GitHub

Installation Features

✅ Flexible Dependencies

Poetry preferred, pip fallback available

✅ Optional Docker

Services are optional - installer won't fail

✅ Auto Migrations

Database migrations run after services start

The installer offers three installation types:

  1. Quick Install - Download ready-to-use project (no setup required)
  2. Full Install - Complete setup with all dependencies
  3. Manual Install - Instructions to fork and clone the repository

Requirements

ToolVersionNote
Python3.12+Required
Poetry or pipLatestPoetry preferred, pip fallback available
Node.js20+For frontend (pnpm will be needed)
DockerLatestOptional - for local services (Redis, PostgreSQL, Centrifugo)

Docker is optional. If not available, the installer will skip local services and you can set them up manually later.


Installation Options

Quick Install

Run the installer script (auto-detects your OS and architecture):

curl -L https://djangocfg.com/install.sh | sh

The installer will guide you through:

  • Installation type selection
  • Project name input
  • Dependency installation (Python + Frontend)
  • Database migrations
  • Optional Docker services setup

Manual Installation

Prefer to do it manually? Here’s the step-by-step process:

# 1. Fork & clone the repository git clone [email protected]:YOUR_USERNAME/django-cfg.git cd django-cfg/solution/projects/django # 2. Install Python dependencies poetry install # 3. Configure environment # Edit settings in ./api/environment/.env # 4. Run migrations (if using local PostgreSQL) poetry run python manage.py migrate # 5. Run Django server poetry run python manage.py runserver # 6. Install frontend dependencies cd ../../frontend/apps/admin pnpm install

Headless Mode (CI/CD)

For automation and CI/CD pipelines:

./djangocfg-installer --headless --config '{"project_name":"my-app","install_type":"full"}'

Configuration Options

FieldDefaultDescription
project_namerequiredProject directory name
install_typequickInstallation type: quick or full
db_namedjangocfgPostgreSQL database name
db_userpostgresPostgreSQL user
db_passwordpasswordPostgreSQL password

Simulation Mode

Preview what will happen without making changes:

./djangocfg-installer --simulate

What Gets Installed

Full Install Mode

  1. ✅ Downloads project template
  2. ✅ Generates .env configuration files
  3. ✅ Installs Python dependencies (Poetry or pip fallback)
  4. ✅ Installs Frontend dependencies (pnpm)
  5. ✅ Optionally starts Docker services (PostgreSQL, Redis, Centrifugo, RQ)
  6. ✅ Runs database migrations (after services start)

Quick Install Mode

  1. ✅ Downloads ready-to-use project ZIP
  2. ✅ Extracts to your chosen directory
  3. ℹ️ Dependencies NOT installed (you run poetry install and pnpm install manually)

Troubleshooting

# If you get "Docker is not running" warning: # 1. Start Docker Desktop, or # 2. Skip services and use SQLite for development: # In .env file: DATABASE__URL=sqlite:///db.sqlite3

The installer does not fail if Docker is unavailable. Services are optional.


Verify Installation

Check the installer version:

./djangocfg-installer --version

Start your Django server:

cd my-project/projects/django poetry run python manage.py runserver # Visit http://localhost:8000

Support the Project

Star and Fork the repository on GitHub: github.com/markolofsen/django-cfg 

Help us grow the community!


Next Steps