Coder Social home page Coder Social logo

Comments (11)

jrief avatar jrief commented on July 22, 2024

Then presumably in one of your templates you are using a templatetag named crispy_forms_tags.

If its so, please close.

from django-sass-processor.

bxm156 avatar bxm156 commented on July 22, 2024

I had the same problem too, the django rest framework includes templates that perhaps use it, even though my project never used them.

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

which version of DRF? I currently using 3.1.3 and do not encounter these problems.

from django-sass-processor.

 avatar commented on July 22, 2024

We (including @franksmit) use the following:

Django==1.9.2
django-sass-processor==0.3.4
djangorestframework==3.3.2
libsass==0.10.1

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

ok
In DRF 3.1.3 the templatetag crispy_forms_tags is not used. This seems to haven been added later to the file
rest_framework/templates/rest_framework/filters/django_filter_crispyforms.html

So what can we do?

  • you add crispyforms to your project
  • we ask Tom Christie to remove that dependency :)
  • someone adds an option, say --ignore-template-errors to the command compilescss

the latter approach is presumably the more future-proof

from django-sass-processor.

 avatar commented on July 22, 2024

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

Just a question, from looking at the code there should only be an error message. The compilation step should not abort. Or is this different in your environment?

from django-sass-processor.

 avatar commented on July 22, 2024

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

I just added a check on the verbosity. If its 0 no warnings are generated.
Please checkout from GitHub and test, it then will be part of 0.3.5

from django-sass-processor.

 avatar commented on July 22, 2024

from django-sass-processor.

dszmaj avatar dszmaj commented on July 22, 2024

@jrief exactly this breaks my sass routine, when crispy-forms are added to my project it just works

unfortunately not as intended... 'sass_src' pointing to scss in static folder serves just precompiled css, if that css is deleted it doesn't compile on runtime, SASS_PROCESSOR_ENABLED is set to DEBUG value (True), SASS_PROCESSOR_AUTO_INCLUDE = False, no other settings, manage command works good after crispy forms addition

django 1.9
python 3.5

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.