Django Gulp

screenshot of Django Gulp

override runserver and collecstatic to run gulp tasks

Overview

Django-gulp is a powerful tool that seamlessly integrates Gulp tasks into your Django development workflow. By overriding the standard manage.py runserver and manage.py collectstatic commands, it enables automatic execution of Gulp tasks, making the development process more efficient and less cumbersome. This integration helps developers manage their assets, such as JavaScript and CSS, in real-time, allowing for a smoother coding experience.

The convenience of using django-gulp extends particularly to developers who make use of build tools like Browserify and SASS. With features that facilitate live reloading and automatic compilation, it's designed to streamline workflows, thus ensuring that updates to your assets are reflected immediately in the browser without manual intervention.

Features

  • Automatic Gulp Task Execution: Integrates Gulp tasks with Django's management commands, ensuring that tasks run automatically when running the server or collecting static files.

  • Live Reloading Support: Pair with live reloading tools to automatically refresh the browser whenever code changes are made, enhancing the development experience.

  • SASS Compilation: Automatically compiles SASS files into CSS, simplifying the management of stylesheets during development.

  • Custom Working Directory: Supports configuration of GULP_CWD, allowing flexibility for projects where the gulpfile.js is not located in the Django project's top-level directory.

  • Production Commands: Provides customizable commands for production builds with GULP_PRODUCTION_COMMAND, ensuring optimized assets are deployed.

  • Heroku Compatibility: Fully functional on Heroku, facilitating deployment with buildpack-multi to maintain consistency across development and production environments.