I've recently adopted Gulp within my Django workflow but I am kind of stumped regarding the storage of my static files.

At the moment, I have my Django's STATIC_ROOT set to E:/path/to/project/collectstatic/ . So, after I run python src/manage.py collectstatic ; my static files are collected as intended. However, I have my gulpfile.js configured so that a variety of tasks are executed on the files within my collectedstaic directory. The output of this - which results in various minified and concatenated files - end up within a new directory, E:/path/to/project/static/ .

Sadly, when the site's STATIC_URL is accessed, the static files are being obtained from the collectedstatic directory; not the static directory as I would want.

Is their anyway to separate the directory in which files are collected and in which they're served? Or, does anybody have a better way for me to configure my Gulp file?

gulpfile.js