Django Modern Boilerplate

screenshot of Django Modern Boilerplate

Django Boilerplate (Production Ready) with modern tools such as Webpack, Tailwind, etc.

Overview

Django Boilerplate is a modern boilerplate designed for building web applications using Django. It includes several features and tools to streamline the development process. The boilerplate incorporates popular technologies such as TailwindCss, Laravel Mix, and behave for testing. It also provides support for soft-delete on Django models and includes built-in fields and commands for database migration. This boilerplate is versatile and can be customized to fit different project requirements.

Features

  • TailwindCss: A popular CSS framework used for styling the interfaces of web applications.
  • Laravel Mix: A tool for bundling static assets through Webpack, providing enhanced performance and ease of development.
  • Behavior-driven development (BDD) testing: Configured behave for testing applications using BDD principles.
  • Soft-delete support: Enables soft-delete functionality on Django models using the django-softdelete package.
  • Built-in fields: Includes built-in fields for PositiveAutoField, PositiveBigAutoField, and PositiveBigIntegerField.
  • Built-in commands: Provides convenient commands for database migration tasks such as migrate-fresh, migrate-refresh, and database seeder.
  • Prefixed templates: Templates are prefixed with the module name for better organization (e.g., app:layouts/app.html).
  • HTTP Method Spoofing: Allows HTTP method spoofing through Form (_method) or HTTP_X_HTTP_METHOD_OVERRIDE header.

Summary

Django Boilerplate is a feature-rich and modern boilerplate designed to simplify the process of building web applications with Django. It includes several useful features such as TailwindCss for styling, Laravel Mix for asset bundling, and behave for BDD testing. The boilerplate also provides support for soft-delete on Django models, includes built-in fields and commands for migrations, and offers HTTP Method Spoofing capabilities. By using this boilerplate, developers can save time and effort in setting up a project and focus more on building awesome web applications.