Sane Django Template

screenshot of Sane Django Template

A sane Django template

Overview

The Sane Django Template is a template that can be used as a starting point for creating Django web apps. It provides a set of features and tools to streamline the development process, including containerization with Docker, integration with Bootstrap 5.3, user registration and authentication, profile image upload, and more. Additionally, the template includes useful scripts for common tasks and supports testing with Pytest and code coverage with coverage.

Features

  • Container-first: Uses Docker for containerization.
  • Bootstrap 5.3: Integrates with Bootstrap using django-libsass and django-compressor.
  • Single static page: Includes a single static page for the homepage.
  • User registration: Allows users to register on the site with email verification.
  • Password management: Provides change password and forgot password flow for users.
  • Per-record authorization: Implements per-record authorization using django-rules.
  • Profile image upload: Enables users to upload profile images.
  • User preferences: Allows users to select between dark mode, light mode, and auto mode.
  • Tests with Pytest: Includes tests for testing the application with Pytest.
  • Code coverage: Supports code coverage analysis with coverage.
  • GitHub action: Automates tests using GitHub actions.
  • Pre-commit hooks: Includes pre-commit hooks for code formatting and linting.

Summary

The Sane Django Template is a well-rounded starting point for Django web app development. It provides a set of essential features, including user registration, password management, containerization with Docker, and more. Additionally, the template supports testing and code coverage analysis, making it easier to ensure the quality of the codebase. With the provided installation guide and useful scripts, developers can quickly get started and streamline their development process.