django-sass icon indicating copy to clipboard operation
django-sass copied to clipboard

Assumption files are stored in MEDIA_ROOT

Open pkkid opened this issue 13 years ago • 0 comments

This is a real one. :)

There is the assumption that CSS files are stored in the MEDIA_ROOT. This should be true for any Django at or before 1.2. However in Django 1.3 the standard is to now store files in the STATIC_ROOT.

1.) One suggestion is to check that STATIC_ROOT is defined, and use the appropriate directory from there, otherwise default back to MEDIA_ROOT. 2.) Another suggestion for a fix is to have an option setting SASS_ROOT that defaults back to the old MEDIA_ROOT if not defined.

I have a fork of this created, I'll tinker around with option #2 tomorrow or so. That seems like a more explicit and less confusing to new users.

pkkid avatar Apr 20 '11 04:04 pkkid