This repository serves as a template for quickly setting up Django applications. It includes a variety of pre-configured features and tools to streamline development.
- Docker Compose: Easily manage your PostgreSQL database with Docker.
- Authentication: Pre-configured authentication setup for secure user management.
- Django REST Framework: Build powerful APIs with ease.
- DRF Spectacular: Automatically generate OpenAPI schema for your APIs.
- Django Guardian: Implement object-level permissions.
- Django Easy Audit: Track changes in your models with audit logging.
- Inspired by Hacksoft Django Style Guide: Follow best practices and coding standards.
- Docker and Docker Compose installed on your machine.
- Python 3.12+ (for local development).
- Clone the repository:
git clone https://github.com/yourusername/django-app-template.git cd django-app-template
- Create a logs directory:
mkdir logs
- Install Python dependencies:
make install-all-requirements
- Copy the environment file:
cp .env.example .env
- Start the Docker containers:
docker-compose up -d
- Run migrations:
make migrate
- Create a superuser (optional):
make superuser
- Access the development server:
Visit
http://localhost:8000
in your web browser.
- Use the Django admin interface for managing users and models.
- Access your API endpoints via the
/api/
path. - Generate the API schema with:
make generate-schema
Feel free to make improvements or add features! Please submit a pull request for any major changes.
This project is licensed under the MIT License - see the LICENSE file for details.