Installation
This guide will help you set up and run the Django Project Template on your local machine.
Prerequisites
Python 3.10 or higher
PostgreSQL 13 or higher
Node.js and npm (for Tailwind CSS)
Quick Start
Clone the repository:
git clone https://github.com/yourusername/django-project-template.git
cd django-project-template
Run the setup script:
source setup_local_env.sh
This script will:
Create and activate a virtual environment
Install dependencies using uv
Set up your local environment variables
Run database migrations
Start the development server
Manual Setup
If you prefer to set up manually, follow these steps:
Create a virtual environment:
python -m venv venv
source venv/bin/activate
Install uv and dependencies:
pip install uv
./requirements/install.sh dev
Configure your environment:
cp .env.example .env.local
# Edit .env.local with your settings
Run migrations:
python manage.py migrate
Start the development server:
python manage.py runserver
Configuration
Key environment variables:
DEBUG: Enable debug mode (set to True for development)SECRET_KEY: Django secret keyDATABASE_URL: PostgreSQL connection stringAWS_*: AWS credentials for S3 storageSTRIPE_*: Stripe API keys for payment processingTWILIO_*: Twilio credentials for SMS