🐳 Dockerized

Running in Docker containers with PostgreSQL and Redis

🚀 Production Ready

Configured with Nginx, Celery, and proper settings structure

⚡ Fast Development

Hot reload enabled for rapid development

🚀 Quick Start

1. Clone Repository

git clone <repository-url>

cd exp2

2. Development Mode

Database: SQLite (no setup required)

docker-compose -f docker-compose.dev.yml up

Access at: http://localhost:8000

3. Production Mode

Database: PostgreSQL with volumes

docker-compose -f docker-compose.prod.yml up

Full production stack with Nginx

Included Examples

Interactive Charts

Chart.js examples are available under /examples/chartjs/.

Calendars

FullCalendar is included as a removable reference page.

Health Check

/health/ returns JSON for container and uptime checks.

⚙️ Environment Variables

Development Settings

  • DEBUG=True
  • DJANGO_SETTINGS_MODULE=config.settings.development
  • SQLite database (no DB config needed)

Production Settings

  • DEBUG=False
  • DJANGO_SETTINGS_MODULE=config.settings.production
  • PostgreSQL database configuration required

Required Variables

  • SECRET_KEY - Django secret key
  • ALLOWED_HOSTS - Comma-separated hosts
  • DB_* - Database credentials (production)

📋 Prerequisites

Required Software

  • Docker & Docker Compose
  • Git
  • Text editor (VS Code recommended)

Environment Setup

  • cp .env.example .env
  • Update SECRET_KEY in .env
  • Modify database settings if needed
  • Development uses SQLite by default