changeset 75:e8119809dfab

Add favicon
author David Soria Parra <dsp@php.net>
date Thu, 19 Feb 2009 09:25:45 +0100
parents 8be782354e8b
children 16ee6de925d1
files hgscm/media/images/favicon.ico hgscm/templates/base.html hgscm/urls.py
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file hgscm/media/images/favicon.ico has changed
--- a/hgscm/templates/base.html	Wed Feb 18 18:43:58 2009 +0100
+++ b/hgscm/templates/base.html	Thu Feb 19 09:25:45 2009 +0100
@@ -5,7 +5,9 @@
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 		<link href="{{ MEDIA_URL }}css/styles.css" type="text/css" rel="stylesheet">
 		<script type="text/javascript" src="{{ MEDIA_URL }}javascript/typeface.js"></script>
-		<script type="text/javascript" src="{{ MEDIA_URL }}javascript/optimer_regular.typeface.js"></script>					
+		<script type="text/javascript" src="{{ MEDIA_URL }}javascript/optimer_regular.typeface.js"></script>
+		<link rel="shortcut icon" type="image/x-icon" href="{{ MEDIA_URL }}images/favicon.ico">
+
 		<title>Mercurial SCM</title>
 	</head>
 	<body id="home">
--- a/hgscm/urls.py	Wed Feb 18 18:43:58 2009 +0100
+++ b/hgscm/urls.py	Thu Feb 19 09:25:45 2009 +0100
@@ -8,6 +8,7 @@
     (r'^media/(?P<path>.*)$', 'django.views.static.serve', 
         { 'document_root': os.path.join(settings.MEDIA_ROOT) }),
 
+    (r'^favicon\.ico$', 'django.views.static.serve', {'document_root': os.path.join(settings.MEDIA_ROOT), 'path': 'images/favicon.ico'}),
     # Uncomment the next line to enable the admin:
     # (r'^admin/(.*)', admin.site.root),
 )