<?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>Greg Allard &#187; Greg&#8217;s Posts on Code Spatter</title>
	<atom:link href="http://gregallard.com/category/aggregated-content/code-spatter-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregallard.com</link>
	<description>The portfolio of the web developer.</description>
	<lastBuildDate>Fri, 11 Sep 2009 00:41:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Display Realtime Traffic Analytics</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/b5gc-FTtlz4/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/b5gc-FTtlz4/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:26:29 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=496</guid>
		<description><![CDATA[Users of 
Presskit&#8217;n have been asking for traffic statistics on their press releases so I decided I would get them the most recent data possible. At first I was parsing the access log once a minute and when I was testing that I decided it wasn&#8217;t updating fast enough. I&#8217;ve gotten used to everything being [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/04/23/how-to-speed-up-your-django-sites/' rel='bookmark' title='Permanent Link: How to Speed up Your Django Sites with NginX, Memcached, and django-compress'>How to Speed up Your Django Sites with NginX, Memcached, and django-compress</a> A lot of these steps will speed up any kind...</li><li><a href='http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/' rel='bookmark' title='Permanent Link: Python Projects in Users&#8217; Home Directories with wsgi'>Python Projects in Users&#8217; Home Directories with wsgi</a> Letting users put static files and php files in a...</li><li><a href='http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/' rel='bookmark' title='Permanent Link: How to Write Reusable Apps for Pinax and Django'>How to Write Reusable Apps for Pinax and Django</a>  Pinax is a collection of reusable django apps that...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/b5gc-FTtlz4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python Projects in Users’ Home Directories with wsgi</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/eZ9a0rCJ4Ow/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/eZ9a0rCJ4Ow/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 14:27:12 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[wsgi]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=484</guid>
		<description><![CDATA[Letting users put static files and php files in a public_html folder in their home directory has been a common convention for some time. I created a way for users to have a public_python folder that will allow for python projects.
In the apache configuration files I created some regular expression patterns that will look for [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/' rel='bookmark' title='Permanent Link: How to Add Locations to Python Path for Reusable Django Apps'>How to Add Locations to Python Path for Reusable Django Apps</a> In my previous post I talk about reusable apps, but...</li><li><a href='http://codespatter.com/2009/04/01/getting-basecamp-api-working-with-python/' rel='bookmark' title='Permanent Link: Getting Basecamp API Working with Python'>Getting Basecamp API Working with Python</a> I found one library that was linked everywhere, but it...</li><li><a href='http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/' rel='bookmark' title='Permanent Link: Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron'>Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron</a> Both Debian and Ubuntu make it really simple to get...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/eZ9a0rCJ4Ow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Django Model Manager for Soft Deleting Records and How to Customize the Django Admin</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/Lk6HVaUDrRs/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/Lk6HVaUDrRs/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:37:45 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=467</guid>
		<description><![CDATA[Sometimes it&#8217;s good to hide things instead of deleting them. Users may accidentally delete something and this way there will be an extra backup. The way I&#8217;ve been doing this is I set a flag in the database, deleted = 1. I wrote this code to automatically hide records from django if they are flagged.

Django [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/09/02/how-to-display-realtime-traffic-analytics/' rel='bookmark' title='Permanent Link: How to Display Realtime Traffic Analytics'>How to Display Realtime Traffic Analytics</a> Users of Presskit&#8217;n have been asking for traffic statistics on...</li><li><a href='http://codespatter.com/2009/01/22/how-to-write-django-template-tags/' rel='bookmark' title='Permanent Link: How to Write Django Template Tags'>How to Write Django Template Tags</a> Template tags can be useful for making your applications more...</li><li><a href='http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/' rel='bookmark' title='Permanent Link: How to Write Reusable Apps for Pinax and Django'>How to Write Reusable Apps for Pinax and Django</a>  Pinax is a collection of reusable django apps that...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/Lk6HVaUDrRs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django Single Sign On or a Solution to Multi-domain Cookies</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/8RFWvGYn2ck/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/8RFWvGYn2ck/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 19:48:52 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SSO]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=435</guid>
		<description><![CDATA[I&#8217;ve been working on a project for a while and it has recently started to expand to an additional domain name. The domains will be using the same user base and I want to make it simple for users to be logged in at both applications. With a little research I dug up a few [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/' rel='bookmark' title='Permanent Link: Django Settings Site Domain example.com'>Django Settings Site Domain example.com</a> It took me a while to figure out how to...</li><li><a href='http://codespatter.com/2007/08/10/openid-enabled/' rel='bookmark' title='Permanent Link: OpenID Enabled'>OpenID Enabled</a> If you haven’t stumbled upon any sites that use OpenID...</li><li><a href='http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/' rel='bookmark' title='Permanent Link: Python Projects in Users&#8217; Home Directories with wsgi'>Python Projects in Users&#8217; Home Directories with wsgi</a> Letting users put static files and php files in a...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/8RFWvGYn2ck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Speed up Your Django Sites with NginX, Memcached, and django-compress</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/-GLBHBvluY8/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/-GLBHBvluY8/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 14:22:30 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=389</guid>
		<description><![CDATA[A lot of these steps will speed up any kind of application, not just django projects, but there are a few django specific things. Everything has been tested on 
IvyLees which is running in a Debian/Ubuntu environment.
These three simple steps will speed up your server and allow it to handle more traffic.


Reducing the Number of [...]


Related posts:<ol><li><a href='http://codespatter.com/2008/09/22/static-files-in-django-on-production-and-development/' rel='bookmark' title='Permanent Link: Static Files in Django on Production and Development'>Static Files in Django on Production and Development</a> Update 2009-03-25 I realize why this isn&#8217;t needed. If your...</li><li><a href='http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/' rel='bookmark' title='Permanent Link: Python Projects in Users&#8217; Home Directories with wsgi'>Python Projects in Users&#8217; Home Directories with wsgi</a> Letting users put static files and php files in a...</li><li><a href='http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/' rel='bookmark' title='Permanent Link: Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron'>Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron</a> Both Debian and Ubuntu make it really simple to get...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/-GLBHBvluY8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Locations to Python Path for Reusable Django Apps</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/rouA10vZBtI/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/rouA10vZBtI/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 15:08:11 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=261</guid>
		<description><![CDATA[In my 
previous post I talk about reusable apps, but I don&#8217;t really explain it that much. If you have an app that might be useful in another project, it&#8217;s best to not refer to the project name in the application so you don&#8217;t have to search and remove it when adding to another project. [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/' rel='bookmark' title='Permanent Link: Python Projects in Users&#8217; Home Directories with wsgi'>Python Projects in Users&#8217; Home Directories with wsgi</a> Letting users put static files and php files in a...</li><li><a href='http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/' rel='bookmark' title='Permanent Link: How to Write Reusable Apps for Pinax and Django'>How to Write Reusable Apps for Pinax and Django</a>  Pinax is a collection of reusable django apps that...</li><li><a href='http://codespatter.com/2009/04/01/getting-basecamp-api-working-with-python/' rel='bookmark' title='Permanent Link: Getting Basecamp API Working with Python'>Getting Basecamp API Working with Python</a> I found one library that was linked everywhere, but it...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/rouA10vZBtI/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Basecamp API Working with Python</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/242XXRb_am0/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/242XXRb_am0/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 19:09:33 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=359</guid>
		<description><![CDATA[I found 
one library that was linked everywhere, but it wasn&#8217;t working for me. I was always getting 400 Bad Request when using it. Chris Conover was able to get the following code working.

import urllib2
&#160;
protocol = 'https://'
url = 'example.com'
command = '/projects.xml'
headers = &#123;'Accept' : 'application/xml', 
'Content-type' : 'applications/xml'&#125;
username = 'x'
password = 'y'
&#160;
# Setup password stuff
passman [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/' rel='bookmark' title='Permanent Link: Python Projects in Users&#8217; Home Directories with wsgi'>Python Projects in Users&#8217; Home Directories with wsgi</a> Letting users put static files and php files in a...</li><li><a href='http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/' rel='bookmark' title='Permanent Link: How to Add Locations to Python Path for Reusable Django Apps'>How to Add Locations to Python Path for Reusable Django Apps</a> In my previous post I talk about reusable apps, but...</li><li><a href='http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/' rel='bookmark' title='Permanent Link: Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron'>Setting up Apache2, mod_python, MySQL, and Django on Debian Lenny or Ubuntu Hardy Heron</a> Both Debian and Ubuntu make it really simple to get...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/242XXRb_am0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The People Make SXSW Awesome</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/lX-Q9zLors4/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/lX-Q9zLors4/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 18:04:46 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=283</guid>
		<description><![CDATA[I didn&#8217;t hear much about 
SXSW before going. I knew there would be a lot of presentations to see and there would be a few parties. I never expected the parties to be more valuable than the presentations and I was completely surprised by that.
The evening events were a great chance to meet people that [...]


Related posts:<ol><li><a href='http://codespatter.com/2008/05/16/keep-friends-posted-while-on-the-road/' rel='bookmark' title='Permanent Link: Keep Friends Posted While on the Road'>Keep Friends Posted While on the Road</a> Going on an amazing road trip used to mean that...</li><li><a href='http://codespatter.com/2008/08/27/just-heard-about-an-open-source-database-conference/' rel='bookmark' title='Permanent Link: Just Heard About an Open-Source Database Conference'>Just Heard About an Open-Source Database Conference</a> Baron Schwartz, the lead author of High Performance MySQL 2nd...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/lX-Q9zLors4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Write Django Template Tags</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/BftHbKAEqRc/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/BftHbKAEqRc/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 13:55:49 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Pinax]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=221</guid>
		<description><![CDATA[Template tags can be useful for making your applications more reusable by other projects. For this example I will be adding to the 
books project that I started in a previous post. Also, I&#8217;ve bundled the 
example files into a google code project.
Start off by creating a folder called templatetags in your app directory and [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/01/15/how-to-write-reusable-apps-for-pinax-and-django/' rel='bookmark' title='Permanent Link: How to Write Reusable Apps for Pinax and Django'>How to Write Reusable Apps for Pinax and Django</a>  Pinax is a collection of reusable django apps that...</li><li><a href='http://codespatter.com/2008/12/22/django-requestcontext-example/' rel='bookmark' title='Permanent Link: Django RequestContext Example'>Django RequestContext Example</a> Browsing other peoples&#8217; code is a great way to learn...</li><li><a href='http://codespatter.com/2008/09/13/quick-thumbnails-in-django/' rel='bookmark' title='Permanent Link: Quick Thumbnails in Django'>Quick Thumbnails in Django</a> I normally like to write code myself instead of installing...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/BftHbKAEqRc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Write Reusable Apps for Pinax and Django</title>
		<link>http://feedproxy.google.com/~r/CodeSpatter/~3/xrZzSg9DM-s/</link>
		<comments>http://feedproxy.google.com/~r/CodeSpatter/~3/xrZzSg9DM-s/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 17:07:09 +0000</pubDate>
		<dc:creator>Greg Allard</dc:creator>
				<category><![CDATA[Greg's Posts on Code Spatter]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[Pinax]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://codespatter.com/?p=158</guid>
		<description><![CDATA[
Pinax is a collection of reusable django apps that brings together features that are common to many websites. It allows developers to focus on what makes their site unique. Here is an example of adding your own functionality to Pinax. It will also be an example of writing a reusable app since every individual app [...]


Related posts:<ol><li><a href='http://codespatter.com/2009/01/22/how-to-write-django-template-tags/' rel='bookmark' title='Permanent Link: How to Write Django Template Tags'>How to Write Django Template Tags</a> Template tags can be useful for making your applications more...</li><li><a href='http://codespatter.com/2009/04/10/how-to-add-locations-to-python-path-for-reusable-django-apps/' rel='bookmark' title='Permanent Link: How to Add Locations to Python Path for Reusable Django Apps'>How to Add Locations to Python Path for Reusable Django Apps</a> In my previous post I talk about reusable apps, but...</li><li><a href='http://codespatter.com/2009/09/02/how-to-display-realtime-traffic-analytics/' rel='bookmark' title='Permanent Link: How to Display Realtime Traffic Analytics'>How to Display Realtime Traffic Analytics</a> Users of Presskit&#8217;n have been asking for traffic statistics on...</li></ol>]]></description>
		<wfw:commentRss>http://feedproxy.google.com/~r/CodeSpatter/~3/xrZzSg9DM-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
