Commits

php committed e811980

Add favicon

  • Participants
  • Parent commits 8be7823

Comments (0)

Files changed (3)

File hgscm/media/images/favicon.ico

Added
New image

File hgscm/templates/base.html

 		<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">

File hgscm/urls.py

     (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),
 )