<?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>Rachel's Blog &#187; Django</title>
	<atom:link href="http://www.willmer.com/kb/category/websites/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.willmer.com/kb</link>
	<description></description>
	<lastBuildDate>Tue, 31 Aug 2010 08:48:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>&#8220;AttributeError: &#8216;module&#8217; object has no attribute &#8216;blah&#8217;&#8221;</title>
		<link>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/</link>
		<comments>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 15:05:47 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/</guid>
		<description><![CDATA[
The obvious cause of this is that the settings.py doesn&#8217;t have the directory containing blah listed in INSTALLED_APPS.
A less obvious cause: you&#8217;ll also get this error if the directory doesn&#8217;t contain a file __init__.py.

]]></description>
			<content:encoded><![CDATA[<ul>
<li>The obvious cause of this is that the settings.py doesn&#8217;t have the directory containing blah listed in INSTALLED_APPS.</li>
<li>A less obvious cause: you&#8217;ll also get this error if the directory doesn&#8217;t contain a file __init__.py.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Django GeoIP templatetag</title>
		<link>http://www.willmer.com/kb/2006/10/django-geoip-templatetag/</link>
		<comments>http://www.willmer.com/kb/2006/10/django-geoip-templatetag/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 18:17:26 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[geoip]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/2006/10/django-geoip-templatetag/</guid>
		<description><![CDATA[I&#8217;ve published 2 template tags for use with GeoIP at geoip.py.
Hope they may be of use&#8230;
Usage:
# Templatetag get_country_name returns the client&#8217;s country code
#
# Example:
# {% ifequal get_country &#8220;GB&#8221; %}
#       do something
# {% endifequal %}
# Templatetag get_country sets the given variable name
# to the client&#8217;s country code
#
# Example:
# {% get_country [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve published 2 template tags for use with GeoIP at <a title="geoip.py" href="http://www.willmer.org/html/djangocode/geoip.py">geoip.py.</a></p>
<p>Hope they may be of use&#8230;</p>
<p>Usage:</p>
<p># Templatetag get_country_name returns the client&#8217;s country code<br />
#<br />
# Example:<br />
# {% ifequal get_country &#8220;GB&#8221; %}<br />
#       do something<br />
# {% endifequal %}</p>
<p># Templatetag get_country sets the given variable name<br />
# to the client&#8217;s country code<br />
#<br />
# Example:<br />
# {% get_country as my_country %}<br />
# {% ifequal my_country &#8220;GB&#8221; %}<br />
#       do something<br />
# {% endifequal %}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2006/10/django-geoip-templatetag/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Django/Ajax: a great simple tutorial</title>
		<link>http://www.willmer.com/kb/2006/10/djangoajax-a-great-simple-tutorial/</link>
		<comments>http://www.willmer.com/kb/2006/10/djangoajax-a-great-simple-tutorial/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 17:56:14 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Ajax]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/2006/10/djangoajax-a-great-simple-tutorial/</guid>
		<description><![CDATA[An excellent tutorial from James Bennett for your first step into combining AJAX with Django
&#8220;A step-by-step walk through a simple AJAX form with Django backend&#8221;
]]></description>
			<content:encoded><![CDATA[<p><a title="A simple AJAX example" href="http://www.b-list.org/weblog/2006/07/31/django-tips-simple-ajax-example-part-1">An excellent tutorial </a>from James Bennett for your first step into combining AJAX with Django</p>
<p class="description"><cite>&#8220;A step-by-step walk through a simple AJAX form with Django backend&#8221;</cite></p>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2006/10/djangoajax-a-great-simple-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make a Django ForeignKey optional</title>
		<link>http://www.willmer.com/kb/2006/10/how-to-make-a-foreign-key-optional/</link>
		<comments>http://www.willmer.com/kb/2006/10/how-to-make-a-foreign-key-optional/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 11:12:23 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/2006/10/how-to-make-a-foreign-key-optional/</guid>
		<description><![CDATA[Looks like you need to have both blank=True and null=True to make a ForeignKey optional in a django model&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Looks like you need to have both <code>blank=True</code> and <code>null=True</code> to make a ForeignKey optional in a django model&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2006/10/how-to-make-a-foreign-key-optional/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Django App Quick Start</title>
		<link>http://www.willmer.com/kb/2005/09/django-app-quick-start/</link>
		<comments>http://www.willmer.com/kb/2005/09/django-app-quick-start/#comments</comments>
		<pubDate>Thu, 08 Sep 2005 18:10:10 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/?p=60</guid>
		<description><![CDATA[How to make a quick start with a first Django application]]></description>
			<content:encoded><![CDATA[<p>I wanted to start writing a Django app which was to allow a user to enter data in various tables, and then run a workflow process.</p>
<p>I liked the admin front-end but thought I needed to do something clever with generic views to replicate this in my own application.</p>
<p>So I asked this question on the django-users list</p>
<pre>On 04/09/05, Rachel Willmer <rwillmer @gmail.com> wrote:
> I want to use the generic view mechanism to add/change/delete but I
> don't want to have to write my own form template for each page.
>
> I'd like it to work just like the admin interface does. Is it
> possible/sensible to hook into the admin code which seems to use
> add_stage/change_stage to automatically generate the templates? Or is
> there a better way of doing this?
>
> Any pointers welcome...
> Rachel
</rwillmer></pre>
<p>Now I&#8217;ve read a bit more about it, the answer is of course to just use the admin interface. <img src='http://www.willmer.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>django-admin.py includes a useful command &#8220;adminindex&#8221;, which will auto-generate a copy of the admin interface index page. </p>
<p>So generate that, and copy it into your template directory to over-ride the inbuilt one, as described in <a href="http://www.djangoproject.com/documentation/tutorial2/#customize-the-admin-look-and-feel">Tutorial2</a></p>
<p>Then you can modify that as you wish&#8230;</p>
<p>Hey presto, instant application front end that you can use as the basis for the new application&#8230;</p>
<p>In retrospect, this is obvious and documented in the Django tutorial. But at the time, I was thinking in terms of &#8220;admin&#8221; interface and &#8220;main&#8221; interface, and it slipped past me that I could in fact use the admin interface *as* the main interface&#8230;</p>
<p>That might not work too well for most web applications, but for my purposes, (a local single-user application), it will work just fine&#8230;</p>
<p>Rachel</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2005/09/django-app-quick-start/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Django search engine</title>
		<link>http://www.willmer.com/kb/2005/09/django-search-engine/</link>
		<comments>http://www.willmer.com/kb/2005/09/django-search-engine/#comments</comments>
		<pubDate>Mon, 05 Sep 2005 08:10:10 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/2005/09/django-search-engine/</guid>
		<description><![CDATA[To help me get to grips with Django quickly, I created a search engine
of the documentation.
On the off-chance this is useful to others, I made it available at http://www.hobthross.com/docs/django/phpdig/search.php
(Sorry if this does not show up as a hyperlink, WordPress appears to be chewing that up and ignoring it)
]]></description>
			<content:encoded><![CDATA[<p>To help me get to grips with Django quickly, I created a search engine<br />
of the documentation.</p>
<p>On the off-chance this is useful to others, I made it available at <a title="Django Search Engine" href="http://www.hobthross.com/docs/django/phpdig/search.php">http://www.hobthross.com/docs/django/phpdig/search.php</a></p>
<p>(Sorry if this does not show up as a hyperlink, WordPress appears to be chewing that up and ignoring it)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2005/09/django-search-engine/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Django for Python websites</title>
		<link>http://www.willmer.com/kb/2005/09/django-for-python-websites/</link>
		<comments>http://www.willmer.com/kb/2005/09/django-for-python-websites/#comments</comments>
		<pubDate>Mon, 05 Sep 2005 08:08:14 +0000</pubDate>
		<dc:creator>Rachel</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.willmer.com/kb/2005/09/django-for-python-websites/</guid>
		<description><![CDATA[I&#8217;ve just taken a look at Django for the first time, and am seriously impressed.
For a while now, I&#8217;ve been trying to find a way of using Python in websites, and haven&#8217;t found anything that works well enough &#8211; Zope, Cheetah, mod_python &#8211; all seem very difficult to get the simplest thing working&#8230;
But Django looks [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just taken a look at Django for the first time, and am seriously impressed.</p>
<p>For a while now, I&#8217;ve been trying to find a way of using Python in websites, and haven&#8217;t found anything that works well enough &#8211; Zope, Cheetah, mod_python &#8211; all seem very difficult to get the simplest thing working&#8230;</p>
<p>But <a href="http://djangoproject.com">Django</a> looks like the answer.</p>
<p>The guys behind Django have produced a very useful tutorial to help you get going with it, and the users mailing list seems very responsive&#8230;</p>
<p>Very impressed so far&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willmer.com/kb/2005/09/django-for-python-websites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
