Re: Using Django with Gulp.js

2014-11-14 Thread Cal Leeming [iops.io]
No problem at all. Also one more thing, to access settings constants from templates you'll need this; http://stackoverflow.com/questions/433162/can-i-access-constants-in-settings-py-from-templates-in-django Gulp sadly does have many of the same performance problems that Grunt has, however the

Re: Using Django with Gulp.js

2014-11-14 Thread Some Developer
Awesome answer. Thanks. The only reason I considered using a Python HTML library was because I thought you might need to edit the base template to change the JavaScript and CSS links from the individual files to the main concatenated files when deploying to production. I didn't realise you

Re: Using Django with Gulp.js

2014-11-13 Thread Cal Leeming [iops.io]
Personally I use a mixture of Vagrant, Docker, Gulp and makefiles to automate the entire process. You run the gulp process as a backgrounded job, and then the django runserver in the foreground.. of course, this means gulp is then not interactive.. if you want both to be inter, then you have to

Using Django with Gulp.js

2014-11-13 Thread Some Developer
I'm using Gulp.js to deal with my JavaScript and SASS files to concatenate them and minify them but I'm unsure how to merge it with my Django workflow. I want to be able to automatically minify the files into one big JavaScript and CSS file to reduce HTTP requests and to allow easy uploading