Django with Gulp

Django with Gulp

hello friend,

A few month back, I was working on a Django (Python Web Framework) project, usually I work on Laravel (PHP Framework), and I use either gulp (in Laravel 5.2-5.3) or webpack (in Laravel 5.4), as task runner and module bundler respectively.

As we know, gulp/webpack comes inbuilt with Laravel, once we clone from the github repository. But, in case of Django, very limited files come when we create a new project (using django-admin startproject mysite). We have to create app, model, template etc. Which is kind of sensible, as it give a compact project/app. It then depends on developer, who shapes Django application.

Coming from Laravel, I faced some teething problem, later got used to Django ecosystem. During development process I used gulp as task runner, and wanted to share to other developers so that they can use in there projects too. It isn't specific to Django, you can use this gulp file in other framework like Rails or Laravel (don't forget to change file path).

I've created a Github Gist, which you can find here. It includes "package.json" and "gulpfile.js".

  • package.json: Where you'll be able to download node packages, on which gulp functionality is dependent.
  • gulpfile.js: Where you'll get task related to scripts (Javascript, jQuery and AngularJS), styles (CSS, SCSS) and image processing.

Don't forget to star, if you find this gist useful.

To view or add a comment, sign in

More articles by Gaurav Dave

  • Upgrading a Legacy Application written in Laravel

    Hi everyone, Recently, I upgraded one of my Laravel application, now you might think that version upgrades are pretty…

  • Playing with Azure SDK for Go

    Hi Everyone! Today, I'm going to share an article with you, which I've written based on my experience with Azure SDK…

  • CasperJS + Python3 for Scraping Media Content

    Hey Guys, Website Scraping for me simply means, you create a tool, which then gets run in background, whose job is to…

  • Capturing Digital Footprints

    Hello Everyone, In today's world, it's very common for any organization to track and store digital footprints of users…

  • Taking advantage of Queue in Laravel

    This article is regarding Queue feature provided by Laravel. As the name suggest, this feature allows developer to add…

  • Analyzing "Internet" Traffic

    Hey Guys! Whenever, you visit a website it doesn't load a single resource/file, there are series of files, which…

  • Taking advantage of Git Hooks in Laravel Migration Mechanism

    Hey Guys! Writing a code snippet, and developing project is considered to be a world of difference, especially when…

  • Scrape Content using Golang

    Hey Guys, Few week back, I was learning Go (Golang). It's a super awesome and somewhat complicated programming language…

    3 Comments

Explore content categories