<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apreche.net &#187; Django</title>
	<atom:link href="http://www.apreche.net/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.apreche.net</link>
	<description>One geeks thoughts on the geekeries of the world.</description>
	<lastBuildDate>Mon, 16 Jan 2012 23:08:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Django Favicon with Amazon S3</title>
		<link>http://www.apreche.net/django-favicon-with-amazon-s3/</link>
		<comments>http://www.apreche.net/django-favicon-with-amazon-s3/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 21:38:20 +0000</pubDate>
		<dc:creator>Apreche</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.apreche.net/?p=774</guid>
		<description><![CDATA[I had a little trouble today trying to get a favicon for my django site. I found some solutions online, but they assumed that you were serving your media statically through your apache server. I&#8217;m serving all my static files &#8230; <a href="http://www.apreche.net/django-favicon-with-amazon-s3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a little trouble today trying to get a favicon for my django site. I found some solutions online, but they assumed that you were serving your media statically through your apache server. I&#8217;m serving all my static files through Amazon S3, so those techniques didn&#8217;t work for me. Here&#8217;s how I did it instead.</p>
<p><span id="more-774"></span></p>
<p>First, I copied my favicon.ico to my S3 bucket. It&#8217;s just a 16&#215;16 png file that I renamed.</p>
<p>In my settings file I made sure the MEDIA_URL was set to my S3 URL.</p>
<p>Then I made sure these things were imported in my urls.py</p>
<pre>from django.conf import settings
from django.views.generic.simple import redirect_to</pre>
<p>Lastly, I added this rule to my urls.py</p>
<pre>(r'^favicon.ico$', redirect_to, {'url':settings.MEDIA_URL+'favicon.ico'}),</pre>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.apreche.net/django-favicon-with-amazon-s3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

