#25283: ManifestStaticFilesStorage does not works in edge cases while importing 
url
font-face with IE hack
-------------------------------------+--------------------
     Reporter:  msaelices            |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:  contrib.staticfiles  |    Version:  1.8
     Severity:  Normal               |   Keywords:
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  1                    |      UI/UX:  0
-------------------------------------+--------------------
 See http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax

 The {{{collectstatic}}} command fails when the CSS contains something like
 this:

 {{{
 @font-face {
     font-family: 'Montserrat';
     src: url('../fonts/montserrat-ultralight-webfont.eot');
     src: url('../fonts/montserrat-ultralight-webfont.eot?#iefix') format
 ('embedded-opentype'),
          url('../fonts/montserrat-ultralight-
 webfont.svg#../fonts/montserratultra_light') format('svg');
     font-weight: 100;
     font-style: normal;
 }
 }}}

 The reason? The {{{#../fonts/montserratultra_light}}} part of the
 {{{url}}} declaration makes {{{ManifestStaticFilesStorage}}} fails to
 compute the relative path counting the {{{..}}} and {{{/}}} ocurrences in
 the string. See this line:
 
https://github.com/django/django/blob/4157c502a5202798d0f73645181cb82aa71d34d9/django/contrib/staticfiles/storage.py#L170

--
Ticket URL: <https://code.djangoproject.com/ticket/25283>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.65ed0c3eba1e7f85bfa2f1c8e7804f77%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to