hello yati, thank you for your reply! unfortunately the change from {{ MEDIA_URL }} to {{ STATIC_URL }} did not fix the 404 error.
I think I do have a problem with django-localeurl redirection. As soon as I have a fix, I post to the list. Cheers, ionic On Sat, 2012-03-17 at 23:36 +0530, yati sagade wrote: > try using {{ STATIC_URL }} instead of {{MEDIA_URL}} - It has worked > for me, and where it doesn't, pass settings.STATIC_URL as a context > variable from the view. > > > On Sat, Mar 17, 2012 at 11:27 PM, ionic drive <ionicdr...@gmail.com> > wrote: > > > hello django friends, > > my log files do complain about strange 404 errors when serving > static css files to IE, because I do use special CSS files to > please IE-versions via @import for CSS. > > The css files are included as follows in the html code: > > <link rel="stylesheet" > href="{{ media_url }}css/style_base.css"> > > <style type="text/css">@import > url({{ media_url }}css/style_all_no_ie.css) all;</style> > > <!--[if lte IE 6]> > <style type="text/css">@import > url({{ media_url }}css/style_ie6.css);</style> > <![endif]--> > > <!--[if IE 7]> > <style type="text/css">@import > url({{ media_url }}css/style_ie7.css);</style> > <![endif]--> > > <!--[if gte IE 8]> > <style type="text/css">@import > url({{ media_url }}css/style_no_ie.css);</style> > <![endif]--> > > There is NO problem with IE8, but IE7 gives this error on > connect: > > localhost - - [17/Mar/2012:15:30:37 +0100] > "GET /url(/media/css/style_all_no_ie.css)%20all HTTP/1.0" 404 > 1128 "http://example.com/site/" "Mozilla/4.0 (compatible; MSIE > 7.0; Windows NT 5.1)" > > I guess it has to do something with the setup: > +NGINX to serve static files > +APACHE via mod_wsgi > > The GOOD news are: > +everything works fine > +the css files get served as the should for all browsers (for > IE7 too). > > The BAD news: > +I want django to email me 404 errors via the > "SEND_BROKEN_LINK_EMAILS = True" parameter. > +But now I do get a lot of emails with 404 errors which are no > real 404 errors. > > Did someone of you already had that issue and is able to come > up with a solution to fix it? > > Thank you very much! > ionic > > -- > You received this message because you are subscribed to the > Google Groups "Django users" group. > To post to this group, send email to > django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users > +unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > > > -- > Yati Sagade > > (@yati_itay) > > > > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users > +unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.