Revision history [back]
Is custom favicon working?
I think custom favicon is broken, or at least I can't figure out what I'm doing wrong... I've fixed it on my github, by changing base.html as follows:
{% if settings.SITE_FAVICON %}
<link rel="shortcut icon" href="{{ settings.SITE_FAVICON|media }}" />
{% else %}
<link rel="shortcut icon" href="{{ '/m/default/media/images/favicon.gif'|media }}" />
{% endif %}
I also changed the default for settings.SITE_FAVICON
to reflect what was in this file originally (/m/default/media/images/favicon.gif
). I think /images/favicon.gif
does not exist. If it works as I think it should, there is really no need for the if/else in the above code; simply:
<link rel="shortcut icon" href="{{ settings.SITE_FAVICON|media }}" />
should capture the default if set correctly. I can't test this, though, since there seems to be no way to reset the defaults... guess I could hack the database...
Is custom favicon working?
I think custom favicon is broken, or at least I can't figure out what I'm doing wrong... I've fixed it on my github, by changing base.html as follows:
{% if settings.SITE_FAVICON %}
<link rel="shortcut icon" href="{{ settings.SITE_FAVICON|media }}" />
{% else %}
<link rel="shortcut icon" href="{{ '/m/default/media/images/favicon.gif'|media }}" />
{% endif %}
I also changed the default for settings.SITE_FAVICON
to reflect what was in this file originally (/m/default/media/images/favicon.gif
). I think /images/favicon.gif
does not exist. If it works as I think it should, there is really no need for the if/else in the above code; simply:
<link rel="shortcut icon" href="{{ settings.SITE_FAVICON|media }}" />
should capture the default if set correctly. I can't test this, though, since there seems to be no way to reset the defaults... guess I could hack the database...exist.