I'm having trouble with django-pipeline which requires you to set the
settings.STYLUS_BINARY
for the stylus compiler.
In my settings.py I have the following:
STYLUS_BINARY = os.path.join(BASE_DIR, 'node_modules', '.bin', 'stylus')
If I print this to the console I see the folder:
c:/Users/chowza/myproject/node_modules/.bin/stylus
However, if I dig into the django-pipeline module that actually uses settings.STYLUS_BINARY
and add a print there I see the following when printing settings.STYLUS_BINARY
:
('usr/bin/env/','stylus')
That is what the default path of STYLUS_BINARY
is set to according to django-pipeline
At the top of this module is a function that says from pipeline.conf import settings
so I assume my settings file is being imported.
That tells me that my settings.STYLUS_BINARY
is not set.
I am using python manage.py collectstatic --settings myproject.settings
so that I can compile stylus files to css with settings.STYLUS_BINARY
.
So my question is why is the settings variable not set? what am I doing wrong?
Note: this was tested on Windows and on Heroku deployment