File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2222config .STATIC_URL = staticfiles_storage .url ('scss/' )
2323
2424# This is where PyScss places the sprite files.
25- config .ASSETS_ROOT = os .path .join (settings .STATIC_ROOT , 'scss' , 'assets' )
25+ config .ASSETS_ROOT = os .path .join (settings .STATIC_ROOT ,
26+ settings .COMPRESS_OUTPUT_DIR , 'assets' )
2627# PyScss expects a trailing slash.
27- config .ASSETS_URL = staticfiles_storage .url ('scss/assets/' )
28+ config .ASSETS_URL = staticfiles_storage .url (settings .COMPRESS_OUTPUT_DIR +
29+ '/assets/' )
2830
2931
3032class DjangoScssCompiler (Compiler ):
Original file line number Diff line number Diff line change @@ -150,4 +150,4 @@ def test_sprite_images(self):
150150 actual = self .compiler .compile_string (SPRITE_MAP )
151151 # pyScss puts a cachebuster query string on the end of the URLs, lets
152152 # just check that it made the file that we expected.
153- self .assertTrue (re .search (r'url\(/static/scss /assets/images_icons-.+\.png\?_=\d+' , actual ))
153+ self .assertTrue (re .search (r'url\(/static/CACHE /assets/images_icons-.+\.png\?_=\d+' , actual ))
You can’t perform that action at this time.
0 commit comments