Coder Social home page Coder Social logo

Comments (9)

 avatar commented on June 23, 2024

Would be awesome if this were to be fixed. On our test server we encounter this issue a lot...

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 23, 2024

@jrief do you know what causes this? I haven't come across this problem yet.

from django-sass-processor.

jrief avatar jrief commented on June 23, 2024

I actually can't reproduce it, so anybody who is able to reproduce this bug, please spend some time and investigate.

from django-sass-processor.

udhaya0000 avatar udhaya0000 commented on June 23, 2024

While using with django-compressor, When Debug is False, it fails to compile the css.
Ex:

DEBUG = False
TEMPLATE_DEBUG = False
COMPRESS_ENABLED = False

When COMPRESS_ENABLED is true it throughs 500 error.

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 23, 2024

@udhaya0000 when DEBUG is set to False then you have to compile it beforehand with the compilescss command. This is documented in the README. Use SASS_PROCESSOR_ENABLED if you want it to automatically generate CSS files when DEBUG is set to False in order to generate the CSS files per request.

We are also gonna need more information than the status code. You perhaps configured it badly.

from django-sass-processor.

udhaya0000 avatar udhaya0000 commented on June 23, 2024

@AndreasBackx Thanks SASS_PROCESSOR_ENABLED = True works, but python manage.py compilescss gives the following error ImportError: Could not import settings 'app.settings.prod' (Is it on sys.path? Is there an import error in the settings file?): No module named unipath

Also the collectstatic PATTERN not working if I use .scss, but it works if I change it to *.scss

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on June 23, 2024

@udhaya0000 please provide us with full stacktraces, exception messages are not worth much.

That pattern is working how it should...

from django-sass-processor.

jrief avatar jrief commented on June 23, 2024

@Arany reported that this happens if you invoke ./manage.py collectstatic, when the folder referenced by settings.STATIC_ROOT has not been created yet.

from django-sass-processor.

RubeRuby avatar RubeRuby commented on June 23, 2024

It is an old issue, but I experience this too.
First run:
image
Second run:
image

from django-sass-processor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.