You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a third party app which is shipped with their own scss files. During development I'd like to use django-libsass, but CSS files shall be delivered precompiled for easier deployment. Otherwise each customer would have to install libsass, which requires a C++ compiler on the production host.
Since this third party app can not run by itself, I added a manage.py script together with a minimal settings.py. Beside the usual boilerplate, this file essentially contains the following settings:
With ./manage compress I'm able to convert all my scss files into css. These files then are stored below my_app/static/CACHE/css/... together with a manifest.json.
to a Django template works perfectly during development: my_app/css/foo.scss is converted on the fly into a css file. But during production, I have to access the files prebuilt with ./manage compress.
Unfortunately I did not find out how to access these precompiled files on a production host. If I remove the COMPRESS_PRECOMPILERS (which is the prerequisite explained above), then the browser accesses the scss files directly, but of course that's not what I want.
And from the docs I haven't found out how to configure an app to access the precompiled files.
Any hints?
The text was updated successfully, but these errors were encountered:
I have a third party app which is shipped with their own scss files. During development I'd like to use django-libsass, but CSS files shall be delivered precompiled for easier deployment. Otherwise each customer would have to install
libsass
, which requires a C++ compiler on the production host.Since this third party app can not run by itself, I added a
manage.py
script together with a minimalsettings.py
. Beside the usual boilerplate, this file essentially contains the following settings:With
./manage compress
I'm able to convert all my scss files into css. These files then are stored belowmy_app/static/CACHE/css/...
together with amanifest.json
.Adding
to a Django template works perfectly during development:
my_app/css/foo.scss
is converted on the fly into a css file. But during production, I have to access the files prebuilt with./manage compress
.Unfortunately I did not find out how to access these precompiled files on a production host. If I remove the
COMPRESS_PRECOMPILERS
(which is the prerequisite explained above), then the browser accesses the scss files directly, but of course that's not what I want.And from the docs I haven't found out how to configure an app to access the precompiled files.
Any hints?
The text was updated successfully, but these errors were encountered: