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

<channel>
	<title>Rhonabwy &#187; django</title>
	<atom:link href="http://www.rhonabwy.com/wp/category/geekstuff/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rhonabwy.com/wp</link>
	<description>Mac OS X, iPhone, Tech, and daily life in Seattle</description>
	<pubDate>Sat, 15 Nov 2008 19:11:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Django 1.0</title>
		<link>http://www.rhonabwy.com/wp/2008/09/03/django-10/</link>
		<comments>http://www.rhonabwy.com/wp/2008/09/03/django-10/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 02:51:08 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/?p=674</guid>
		<description><![CDATA[Congratulations to the entire development team and Django community for making the Django 1.0 release today! It&#8217;s a monumental accomplishment, and I&#8217;m very pleased to see it here.
I&#8217;m not as active in the community these days, but I&#8217;m still using the project on a regular basis as one of my &#8220;secret weapons&#8221; to get things [...]]]></description>
			<content:encoded><![CDATA[<p>Congratulations to the entire development team and Django community for making <a href="http://www.djangoproject.com/weblog/2008/sep/03/1/">the Django 1.0 release</a> today! It&#8217;s a monumental accomplishment, and I&#8217;m very pleased to see it here.</p>
<p>I&#8217;m not as active in the community these days, but I&#8217;m still using the project on a regular basis as one of my &#8220;secret weapons&#8221; to get things done quickly. It&#8217;s worth noting that there are some definite changes in the 1.0 release from even what&#8217;s in the various books now available for Django. If you&#8217;re heading in to the 1.0 release and can&#8217;t find something you expect to be there, make sure you check the <a href="http://docs.djangoproject.com/">online documentation</a> at <a href="http://docs.djangoproject.com/">http://docs.djangoproject.com/</a> - it&#8217;s very complete and very worthwhile.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/09/03/django-10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>LaunchPad</title>
		<link>http://www.rhonabwy.com/wp/2008/06/27/launchpad/</link>
		<comments>http://www.rhonabwy.com/wp/2008/06/27/launchpad/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 23:28:00 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[Ranting and Reflections]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/?p=623</guid>
		<description><![CDATA[I signed up with Launchpad today - don&#8217;t know why I hadn&#8217;t really done it earlier, other than I just didn&#8217;t think to or have any projects that drove me there. The project du jour that lured me in was Graphite - a distributed high-performance monitoring solution written in python (and apparently using Django as [...]]]></description>
			<content:encoded><![CDATA[<p>I signed up with <a href="https://launchpad.net/">Launchpad</a> today - don&#8217;t know why I hadn&#8217;t really done it earlier, other than I just didn&#8217;t think to or have any projects that drove me there. The project du jour that lured me in was <a href="https://launchpad.net/graphite">Graphite</a> - a distributed high-performance monitoring solution written in <a href="http://www.python.org/">python</a> (and apparently using <a href="http://www.djangoproject.com/">Django</a> as well!).</p>
<p>(I haven&#8217;t tried Graphite yet, but the <a href="http://graphite.wikidot.com/screen-shots">screenshots</a> looked pretty nice - so I might be doing so to see what it&#8217;s all about.)</p>
<p>LaunchPad is Ubuntu/Canonical&#8217;s code hosting platform - similar to <a href="http://code.google.com/">Google Code</a> or <a href="http://www.sf.net">Sourceforge</a> in concept. They use <a href="http://bazaar-vcs.org/">Bzr</a> for their source control, which is a tad odd to me - I&#8217;m more in the <a href="http://www.selenic.com/mercurial/wiki/">mercurial</a> camp of any decentralized SCM - but their web site is really first class. They&#8217;ve got a nice system and setup - simple, somewhat bold iconography, obvious components to projects, and a clean look. As a place to encourage project and community participation, I admit that I was immediately drawn in. My own project (languishing at the moment) on Google Code (<a href="http://django-queue-service.googlecode.com/">django queue service</a>) has an interface that feels positively stark in contrast.</p>
<p>I&#8217;m not going to move anything over, but I suspect I will pay more attention to the LaunchPad setup going into the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/06/27/launchpad/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mondrian &#038; ReviewBoard</title>
		<link>http://www.rhonabwy.com/wp/2008/05/02/mondrian-reviewboard/</link>
		<comments>http://www.rhonabwy.com/wp/2008/05/02/mondrian-reviewboard/#comments</comments>
		<pubDate>Sat, 03 May 2008 03:30:57 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[Ranting and Reflections]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/?p=602</guid>
		<description><![CDATA[Word is that the a version of the code review tool that Google uses internally (called Mondrian) on the Google App Engine - called Code Review. I remember first seeing the Google tech talk on Mondrian and thinking that was pretty cool - then later hearing about ReviewBoard on the Django users mailing list. 
I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://radar.oreilly.com/archives/2008/05/mondrian-guido-google-app-engine.html">Word is that the a version of the code review tool that Google uses internally (called Mondrian) on the Google App Engine</a> - called <a href="http://codereview.appspot.com/">Code Review</a>. I remember first seeing the <a href="http://www.youtube.com/watch?v=sMql3Di4Kgc">Google tech talk on Mondrian</a> and thinking that was pretty cool - then later hearing about <a href="http://review-board.org/">ReviewBoard</a> on the Django users mailing list. </p>
<p>I&#8217;ve since starting using <a href="http://review-board.org/">ReviewBoard</a> (and even contributed a few bits back) and have been very pleased with it. I&#8217;m curious to dig into what <a href="http://codereview.appspot.com/">Code Review</a> offers in comparison, but I already know that I&#8217;ll continue using <a href="http://review-board.org/">ReviewBoard</a>. For one thing, my office wouldn&#8217;t take kindly to code and code reviews happening beyond the constrains of the fire wall. But I am seriously jazzed about <a href="http://codereview.appspot.com/">Code Review</a> in the hopes that it&#8217;s very easy to set up. If it&#8217;s an easy, low/no-cost solution for open source code&#8230; well, that&#8217;d be pretty damn cool. <a href="http://review-board.org/">ReviewBoard</a>, for all it&#8217;s goodness, can take some time and effort to completely install.</p>
<p><b>UPDATE:</b> Since I wrote about this, I found the Google project that Guido has used to make (and now share) CodeReview - the project is <a href="http://code.google.com/p/rietveld/">rietveld</a>. Guido mentions that it&#8217;s meant to showcase how to do a webapp using Django templating and views with the Google Application Engine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/05/02/mondrian-reviewboard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Django and the Google AppEngine</title>
		<link>http://www.rhonabwy.com/wp/2008/04/07/django-and-the-google-appengine/</link>
		<comments>http://www.rhonabwy.com/wp/2008/04/07/django-and-the-google-appengine/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 05:11:49 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2008/04/07/django-and-the-google-appengine/</guid>
		<description><![CDATA[I&#8217;m sure that anyone into Django will either see or hear about this before they catch my blog post, but it&#8217;s too neat a story not to write about a comment on.
Tonight, Google released AppEngine - an elastic computing environment specifically set up with the idea of developing web applications in python. They&#8217;ve pushed up [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure that anyone into Django will either see or hear about this before they catch my blog post, but it&#8217;s too neat a story not to write about a comment on.</p>
<p>Tonight, <a href="http://radar.oreilly.com/archives/2008/04/app-engine-host-your-python-apps-with-google.html">Google released AppEngine</a> - an elastic computing environment specifically set up with the idea of developing web applications in python. They&#8217;ve pushed up <a href="http://code.google.com/appengine/articles/cf1-text.html">a copy of the transcript from their announcement</a> if you&#8217;re interested&#8230;</p>
<p>It may come as no surprise that the back-end of AppEngine is/was heavily influenced by <a href="http://www.djangoproject.com/">Django</a> - and in fact the SDK that you can download comes with Django 0.96.1 embedded within it. That&#8217;s not to say Django is your only choice, but it definitely it mine.</p>
<p>To that end, there&#8217;s an excellent article up at their site on <a href="http://code.google.com/appengine/articles/django.html">using Django with AppEngine</a> - which basically boils down to: &#8220;Don&#8217;t use Django&#8217;s models, because we&#8217;ve got our own <a href="http://code.google.com/appengine/docs/datastore/">back-end datastore thingy</a>, and it works similarly, but from different, than Django&#8217;s models and a database. I haven&#8217;t looked at the HQL datastore API they&#8217;ve got enabled, but I&#8217;m going to guess that some Django core developers likely will before too long to see what the potential overlap is for making it more directly usable with Django&#8217;s model system. (That guess is PURE speculation, I don&#8217;t have any insider knowledge there)</p>
<p>I wasn&#8217;t speedy enough on the request to get into the initial pool of folks who can use the beta - but I&#8217;ve tacked into the waitling list. It&#8217;s not like I really need another cool technology to go spend a lot of time on, but I&#8217;m really curious&#8230; especially with the idea that hosting some amount of your application might be available for free. Not quite sure how <i><b>that</b></i> is going to make sense long term - but I&#8217;ll take it while it&#8217;s available.</p>
<p>One thing for sure - this is certainly going to bring a boon of new attention to python web development, and likely Django as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/04/07/django-and-the-google-appengine/feed/</wfw:commentRss>
		</item>
		<item>
		<title>getting ReviewBoard running</title>
		<link>http://www.rhonabwy.com/wp/2008/02/14/getting-reviewboard-running/</link>
		<comments>http://www.rhonabwy.com/wp/2008/02/14/getting-reviewboard-running/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 01:00:53 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2008/02/14/getting-reviewboard-running/</guid>
		<description><![CDATA[I made some notes on getting Review Board up and running. I thought they might be useful for someone else wishing to do the same&#8230; I implemented review board on a virtual machine, with the VM running Ubuntu Gutsy. I highly recommend getting the basic setup from the GettingStarted page on the reviewboard project wiki.
Review [...]]]></description>
			<content:encoded><![CDATA[<p>I made some notes on getting <a href="http://review-board.org/">Review Board</a> up and running. I thought they might be useful for someone else wishing to do the same&#8230; I implemented review board on a virtual machine, with the VM running Ubuntu Gutsy. I highly recommend getting the basic setup from the <a href="http://code.google.com/p/reviewboard/wiki/GettingStarted">GettingStarted</a> page on the <a href="http://code.google.com/p/reviewboard/w/list">reviewboard project wiki</a>.</p>
<p>Review Board includes an automake setup solution, but I didn&#8217;t take advantage of it. Partly because I felt comfortable setting up a Django project without it, and partly because I didn&#8217;t clue in that it was there and I should use it until well after I&#8217;d begun fiddling with all this.</p>
<p>From those basics, here&#8217;s some additional tidbits</p>
<ol>
<li>get an instance of reviewboard running:</li>
<pre>
mysql -u root -p
 (enter password)
create database reviewboard;
GRANT ALL on reviewboard.* TO reviewboard@localhost IDENTIFIED BY "sup3rsekret"
</pre>
<li>set up settings_local.py to match:</li>
<pre>
# Database backend.  Any supported django database engine should work.
DATABASE_ENGINE = 'mysql'      # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'reviewboard'  # Or path to database file if using sqlite3.
DATABASE_USER = 'reviewboard'     # Not used with sqlite3.
DATABASE_PASSWORD = 'sup3rsekret' # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost.
DATABASE_PORT = ''             # Set to empty string for default.
</pre>
<li>initialize the database:</li>
<pre>
cd reviewboard
./manage.py syncdb
 (create an admin account when asked)
</pre>
<li>hook this whole thing up to Apache:</li>
<p>I configured my setup using the <a href="http://code.google.com/p/reviewboard/source/browse/trunk/reviewboard/contrib/conf/apache-modpython.conf.in">provided mod_python template</a> - the Makefile setup system seems to include provisioning it, but I did this all by hand. </p>
<p>Running as mod_python means that the account accessing perforce was &#8220;www-data&#8221; by default - a user that isn&#8217;t normally enabled in our Perforce repository. I worked around that issue by handing down additional perforce specific environment variables:</p>
<pre>
    SetEnv P4USER readonly-account
    SetEnv P4PORT p4.server.com:1666
    SetEnv P4CLIENT reviewboard
    SetEnv P4PASSWD xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</pre>
<li>set up the initial data bits to use the service in our environment:</li>
<ul>
<li>use &#8220;python post-review -d&#8221; to find out what perforce is calling your repository.</li>
<li>Add that repository to the list of repositories in the Admin console of ReviewBoard</li>
<li>Add at least one &#8220;review group&#8221; in the Admin form as well</li>
</ul>
<li>Set up a .reviewboardrc for your tree</li>
<p>Place this at the root of your tree. Post-review starts in the current directory and scans upwards to find an instance of this file to know what to do&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;"># Default Review Board Server</span>
REVIEWBOARD_URL = <span style="color: #483d8b;">'http://10.0.0.25'</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Per-repository Review Board servers</span>
<span style="color: #808080; font-style: italic;"># TREES = {</span>
<span style="color: #808080; font-style: italic;">#    '/path/to/local/repo/checkout': {</span>
<span style="color: #808080; font-style: italic;">#         'REVIEWBOARD_URL': 'http://whatever' </span>
<span style="color: #808080; font-style: italic;">#    }</span>
<span style="color: #808080; font-style: italic;"># }</span></pre></div></div>

</ol>
<p>One other thing of note: post review is sensitive to the Diff Headers in trying to pull out the date. We were using an old version of diff and it had some real trouble with that. We updated to using diffutils 2.8.7 to resolve that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/02/14/getting-reviewboard-running/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Starting in with ReviewBoard</title>
		<link>http://www.rhonabwy.com/wp/2008/02/08/starting-in-with-reviewboard/</link>
		<comments>http://www.rhonabwy.com/wp/2008/02/08/starting-in-with-reviewboard/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 07:55:48 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2008/02/08/starting-in-with-reviewboard/</guid>
		<description><![CDATA[I&#8217;ve been meaning to dive into the project ReviewBoard since I first heard about it, many months ago. I had first heard of a similar critter - Google&#8217;s internal tool called Mondrian. I was pretty darn excited about that tool when I heard about it, but Google&#8217;s not making any of it available. Instead some [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to dive into the project <a href="http://www.review-board.org/">ReviewBoard</a> since <a href="http://www.chipx86.com/blog/?p=222">I first heard about it</a>, many months ago. I had first heard of a similar critter - Google&#8217;s internal tool called <a href="http://video.google.com/videoplay?docid=-8502904076440714866">Mondrian</a>. I was pretty darn excited about that tool when I heard about it, but Google&#8217;s not making any of it available. Instead <a href="http://www.chipx86.com/blog/">some</a> of the <a href="http://david.navi.cx/blog/">fine staff</a> at <a href="http://www.vmware.com/products/ws/">VMware</a> (fine products that I use, even if they do seem a tad overly &#8216;proud&#8217; price wise of their enterprise server products&#8230;) made it available. More than made it available, actually - as they&#8217;re hosting it, developing it, working it, and making it real with Google&#8217;s <a href="http://code.google.com/p/reviewboard/">informal help with code hosting</a>.</p>
<p>I pulled down all the parts and pieces. Getting <a href="http://public.perforce.com/guest/robert_cowham/perforce/API/python/index.html#build">p4python</a> all set up was a bit of a trick, but the wiki had good hints in the right direction to get me rolling. Just spending a few hours with it, I found a few little quirks, and I&#8217;ll be adding more back into the project as I find things - might as well, if I&#8217;m debugging and fiddling to get things to work anyway, it seems only right to share it back with the community.</p>
<p>So the first thing to note is that getting a ReviewBoard instance set up isn&#8217;t really documented on the wiki as yet. <a href="http://code.google.com/p/reviewboard/wiki/GettingStarted">GettingStarted</a>, and <a href="http://code.google.com/p/reviewboard/wiki/UserBasics">UserBasics</a> gives some hints, but you&#8217;ll still need to read a little code to get it all happening.</p>
<p>Here&#8217;s what I&#8217;ve got for the first takeaways:</p>
<ol>
<li>To really use this tool (at least with Perforce), you&#8217;ll want to use a client like the provided script <a href="http://reviewboard.googlecode.com/svn/trunk/reviewboard/contrib/tools/post-review">post-review</a>. The script is pretty straightforward really - it does all the tedious work of creating a diff <i>prior</i> to checkin and shoving it up into the system.</li>
<li>post-review <a href="http://code.google.com/p/reviewboard/source/browse/trunk/reviewboard/contrib/tools/post-review#328">supports a config file mechanism</a>, but I don&#8217;t yet have that format really working for me. I suspect I&#8217;m doing something stupid, but it&#8217;ll take a little back-tracing to get a reasonable config set up yet.</li>
<li>Getting an instance of this thing rolling requires a few django-specific commands to get the environment seeded up. At a minimum, you&#8217;ll need to invoke &#8220;<code>./manage.py syncdb</code>&#8221; to get the database schemas all in place and rolling.</li>
<li>When you get the instance all rolling for the first time, you&#8217;ll need to set up an admin account and add a Review Group with an appropriate path. I suspect the subversion folks have this a touch easier than Perforce. With Perforce, the &#8220;path&#8221; that you enter needs to match the details that you&#8217;d otherwise get from running &#8220;<code>p4 info</code>&#8220;. When I first set things up, I didn&#8217;t realize that. The server name we use internally is different than the data presented in &#8220;<code>p4 info</code>&#8220;, so that took me a bit by surprise.</li>
<li>post-review also appears to be sensitive to the format of the output of running a diff. If your diff tool, for example, outputs it&#8217;s header data in the form of &#8220;Fri, Feb 8 14:23:52 2008&#8243; <a href="http://code.google.com/p/reviewboard/source/browse/trunk/reviewboard/contrib/tools/post-review#530">instead of &#8220;08/18/2008 14:23:52&#8243;</a>, you&#8217;re going to get a very confusing error.</li>
</ol>
<p>There&#8217;s more, I&#8217;m sure - but I had to deal with other tasks this afternoon, so I haven&#8217;t yet got the basics up and functional. I&#8217;ve at least <a href="http://code.google.com/p/reviewboard/issues/detail?id=399&#038;colspec=ID%20Type%20Status%20Priority%20Component%20Owner%20Summary%20Milestone">submitted a bug</a> that I was sure wasn&#8217;t just a quirk of my somewhat odd development environment. Something that looked like a re-factoring edge case that just hadn&#8217;t been caught yet. I included a patch to fix it - although to be honest, I&#8217;m wasn&#8217;t sure if I should be submitting that to a <a href="http://www.review-board.org/">ReviewBoard</a> instance someone or not, just I just shoved it into the bug.</p>
<p>I think one of the most impressive things about <a href="http://www.review-board.org/">ReviewBoard</a> is that it supports a nice mechanism, and some example scripts, for doing a pre-checkin review. I had naively assumed that I could only get the discussion/review aspects in a post-commit mechanism - without ever even really looking at the project. While I haven&#8217;t read the <a href="http://code.google.com/p/reviewboard/source/browse/trunk/reviewboard/contrib/tools/post-review">post-review</a> code in depth, it&#8217;s pretty clearly set up with the ReviewBoard server as something where a client could significantly help out with this work.</p>
<p>So it&#8217;s not smooth and super easy. Yet. To be fair, the devs don&#8217;t say it either, and they&#8217;ve got a wiki, issue tracker, and all the code available&#8230; so really its just a matter of time before I get it working to suit me. I&#8217;m really glad they&#8217;ve made this available at all, and I&#8217;m looking forward to seeing if I can really make it sing.</p>
<p><b>Update:</b> The answer is yes - <a href="http://code.google.com/p/reviewboard/issues/detail?id=399">you should submit updates and patches to the reviewboard</a> at <a href="http://reviews.review-board.org/">http://reviews.review-board.org/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/02/08/starting-in-with-reviewboard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Django on Ubuntu 7.10 (gutsy)</title>
		<link>http://www.rhonabwy.com/wp/2008/02/07/django-on-ubuntu-710-gutsy/</link>
		<comments>http://www.rhonabwy.com/wp/2008/02/07/django-on-ubuntu-710-gutsy/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 23:33:07 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2008/02/07/django-on-ubuntu-710-gutsy/</guid>
		<description><![CDATA[I slapped together a virtual machine to try out an instance of ReviewBoard. It&#8217;s been a little while since I fiddled with Ubuntu, so I grabbed the latest server release(7.10) and set it up. Then I settled in to get all the various python pieces I&#8217;d need for django&#8230; On a lark, I tried

apt-cache search [...]]]></description>
			<content:encoded><![CDATA[<p>I slapped together a virtual machine to try out an instance of <a href="http://code.google.com/p/reviewboard/">ReviewBoard</a>. It&#8217;s been a little while since I fiddled with <a href="http://www.ubuntu.com/">Ubuntu</a>, so I grabbed the latest server release(7.10) and set it up. Then I settled in to get all the various python pieces I&#8217;d need for django&#8230; On a lark, I tried</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-cache</span> search django</pre></div></div>

<p>&#8230; and sure enough, it came back with a hit.</p>
<p>I had a development environment set up in minutes with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> dist-upgrade
<span style="color: #666666; font-style: italic;"># dev environment</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python-django python-pysqlite2 
<span style="color: #666666; font-style: italic;"># running with MySQL</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python-mysqldb mysql-server-<span style="color: #000000;">5.0</span> mysql-server python-egenix-mxdatetime</pre></div></div>

<p>Nice!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2008/02/07/django-on-ubuntu-710-gutsy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>benchmarking Django Queue Service</title>
		<link>http://www.rhonabwy.com/wp/2007/11/11/benchmarking-django-queue-service/</link>
		<comments>http://www.rhonabwy.com/wp/2007/11/11/benchmarking-django-queue-service/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 23:55:05 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[Ranting and Reflections]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/11/11/benchmarking-django-queue-service/</guid>
		<description><![CDATA[I took some time this afternoon to benchmark out the work we&#8217;ve been doing with  the Django Queue Service. We haven&#8217;t done anything to optimize it, and we&#8217;re starting to push in some code to make it fully support REST verbs (as opposed to its current REST/RPC mixed style). Seemed like a good time [...]]]></description>
			<content:encoded><![CDATA[<p>I took some time this afternoon to benchmark out the work we&#8217;ve been doing with  the <a href="http://django-queue-service.googlecode.com/">Django Queue Service</a>. We haven&#8217;t done anything to optimize it, and we&#8217;re starting to push in some code to make it fully support REST verbs (as opposed to its current REST/RPC mixed style). Seemed like a good time to get some numbers down.</p>
<p>The results are all from my laptop - 2GHz Intel Core Duo, 2GB RAM. Running python 2.5 and the current trunk of Django (0.97-pre-SVN-6668).</p>
<p>The test ran through the timing for adding messages into the queue and getting/deleting messages from the queue, scaling the queue size from 0 to 25,000 items. The client that ran these tests was put together with <a href="http://code.google.com/p/httplib2/">httplib2, release 0.40</a> - running in python on the same machine. Yeah - so pretty much factor out network latency on this one&#8230;</p>
<p>The adding stayed a fairly consistent 8 ms, deviating around a bit - but mostly there.</p>
<p><img src="/pics/DQS_add.png" /></p>
<p>The combination of getting a message and deleting it (in our API, the functions are separate - so it means two calls back to the service) rose linearly with the size of the database. At a base level, it was running about 20 ms and by the time the database size was at 25,000 items the &#8220;get and delete&#8221; operations were taking roughly 165 ms.</p>
<p><img src="/pics/DQS_getdelete.png" /></p>
<p>For SQLite-on-disk database backend, I&#8217;m pretty pleased with those results.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/11/11/benchmarking-django-queue-service/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Django Queue Service</title>
		<link>http://www.rhonabwy.com/wp/2007/11/03/django-queue-service-2/</link>
		<comments>http://www.rhonabwy.com/wp/2007/11/03/django-queue-service-2/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 18:54:47 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[Ranting and Reflections]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/11/03/django-queue-service-2/</guid>
		<description><![CDATA[Work has been continuing apace on the Django Queue Service, mostly through the efforts of Rajesh and Marcus who have really done an outstanding job of filling in the holes in testing and structure for the application to make it viable over the long term. We had some good conversations over email the other day [...]]]></description>
			<content:encoded><![CDATA[<p>Work has been continuing apace on the <a href="http://django-queue-service.googlecode.com/">Django Queue Service</a>, mostly through the efforts of Rajesh and Marcus who have really done an outstanding job of filling in the holes in testing and structure for the application to make it viable over the long term. We had some good conversations over email the other day (enough so that I set up a list for it: django-queue-service@googlegroups.com). I&#8217;ve been terrible about arranging anything on IRC - I know I should to really get us all talking on the same page.</p>
<p>Rajesh apparently picked up a copy of the book <a href="http://www.oreilly.com/catalog/9780596529260/">RESTful Web Services</a> (O&#8217;Reilly), and made a number of suggestions about future direction after reading the book. It really sounded like he got a lot out of the book, so I ordered a copy (through <a href="http://www.queenannebooks.com/">Queen Anne Ave Books</a> cause they&#8217;re cool and local). I should have picked it up Thursday evening, but I was being a slacker and only went by and got it this morning. Anyway, I was starting to read it walking home from the bookstore and I immediately spotted a small chapter/segment in there on doing REST services with Django! Apparently <a href="http://www.jacobian.org/">Jacob</a> helped out with a chapter in there, so there&#8217;s some interesting notes tucked away in Chapter 12 that I&#8217;m interested in getting to. </p>
<p>My knowledge is so scattershot (the trouble with being a technology generalist), that I think I&#8217;m going to take this book through from the start to make sure I catch up on those niggling little details that seem to slip the the cracks. I&#8217;m currently taking a break before seriously digging in to Chapter 2 (writing REST clients), and I&#8217;m glad to see a nice level of detail upcoming on how to actually get the various (what I&#8217;ll call obscure) HTTP verbs functioning from the clients. They have details on several languages, including libraries to use and example code - Ruby, Python, Java, JavaScript, C#, and so forth. It looks to be a good chapter.</p>
<p>For a long time, my reluctance to really get down to the &#8220;PUT&#8221; and &#8220;DELETE&#8221; verbs was because the libraries just didn&#8217;t easily support them - and I wasn&#8217;t sure what the &#8220;right way&#8221; of making them work should be. I&#8217;ve been pretty horrifically burned trying to learn the details needed to make some of the WS* bullshit specs work, and that translated pretty directly to a reluctance to learn the details of programmatically creating HTTP requests with the appropriate &#8220;verbing&#8221;. A blank spot, for sure - and one that I&#8217;m fixing now.</p>
<p>This project (the <a href="http://django-queue-service.googlecode.com/">Django Queue Service</a>) is mostly a &#8220;because I can&#8221; project. I&#8217;m not heavily using it in anything currently, although Rajesh and Marcus are - and I&#8217;ve heard a few other folks have apparently picked it up and run with implementations from it. I&#8217;m firmly of the opinion that the desktop and web-space cloud will continue to mix things up. A concept that Brent outlined in his <a href="http://inessential.com/?comments=1&#038;postid=3353">Hybrid Apps Presentation at C4</a> over the summer of 2006. (Better have a Mac if you want to see that presentation by the way - it&#8217;s a <a href="http://flyingmeat.com/voodoopad/">VoodooPad</a> document). I&#8217;ll be the very last to claim that desktop applications are dead - with the advent of libraries like <a href="http://sparkle.andymatuschak.org/">Sparkle</a> the distribution benefit of the web is just as easy made available to desktop apps as to web applications. And from my own experiences with browsers recently, coming up with fantastic UI functionality that works across browsers is an intense pain in the ass. Its getting better all the time but there are just some things you can&#8217;t do there in terms of interactivity and feedback that I&#8217;d really like to see and want to take advantage of. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/11/03/django-queue-service-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Django Buildbot</title>
		<link>http://www.rhonabwy.com/wp/2007/09/15/django-buildbot/</link>
		<comments>http://www.rhonabwy.com/wp/2007/09/15/django-buildbot/#comments</comments>
		<pubDate>Sun, 16 Sep 2007 06:22:16 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/09/15/django-buildbot/</guid>
		<description><![CDATA[Some very cool news - Django now has a public build site up (http://buildbot.djangoproject.com/)and running, matching the trunk and one of the branches against an assortment of versions of python and databases. Matt Croydon and I are going to be working together to work out the kinks and continue to drive the build environment forward.
All [...]]]></description>
			<content:encoded><![CDATA[<p>Some very cool news - Django now has a <a href="http://buildbot.djangoproject.com/">public build site</a> up (<a href="http://buildbot.djangoproject.com/">http://buildbot.djangoproject.com/</a>)and running, matching the trunk and one of the branches against an assortment of versions of python and databases. <a href="http://postneo.com/">Matt Croydon</a> and I are going to be working together to work out the kinks and continue to drive the build environment forward.</p>
<p>All props to <a href="http://postneo.com/">Matt</a> for the initial deployment and use during the <a href="http://code.djangoproject.com/wiki/Sprint14Sep">current sprint</a>. There&#8217;s still some bugs and kinks to work out of the system - and we&#8217;re going to be hammering those out as soon as the sprint it complete. Since Matt got it functional for the sprint, we didn&#8217;t want to mess with the configurations and start throwing false alarms while there was such dedicated forward progress going on.</p>
<p>Right now, we&#8217;ve got some base builds and tests running against Python 2.4 and 2.5 with Postgres and SQLite to pretty good effect. Still remaining are stable runs against MySQL, anything with Python 2.3 support, and more effective implementations to make it easier for us to support remote build slaves (Oracle? Windows? anyone?) and enable branches to get built a little more easily.</p>
<p>There is plenty to go, and we&#8217;re just getting kicking. I&#8217;m sure you&#8217;ll hear more as we get things nailed down and continue moving forward.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/09/15/django-buildbot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nice Django/Dojo (Ajax toolkit) tutorial</title>
		<link>http://www.rhonabwy.com/wp/2007/09/05/nice-djangodojo-ajax-toolkit-tutorial/</link>
		<comments>http://www.rhonabwy.com/wp/2007/09/05/nice-djangodojo-ajax-toolkit-tutorial/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 05:47:18 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/09/05/nice-djangodojo-ajax-toolkit-tutorial/</guid>
		<description><![CDATA[While out perusing bookmarks and randomly following links, I stumbled across a nice &#8220;from the beginning&#8221; Django tutorial that includes a little bit of Ajax with the Dojo Toolkit. There&#8217;s also a Part 2 to the example, and I think it&#8217;s particularly cool that the author went to the trouble of saving the steps as [...]]]></description>
			<content:encoded><![CDATA[<p>While out perusing bookmarks and randomly following links, I stumbled across <a href="http://www.kunxi.org/archives/2007/09/learning-django-by-example1-start-the-engine/">a nice &#8220;from the beginning&#8221; Django tutorial</a> that includes a little bit of Ajax with the Dojo Toolkit. There&#8217;s also a <a href="http://www.kunxi.org/archives/2007/09/learning-django-by-example2-show-me-your-data/">Part 2</a> to the example, and I think it&#8217;s particularly cool that the author went to the trouble of saving the steps as <a href="http://gelman.googlecode.com/svn/trunk/gelman/">specific revisions within google code</a> so you can &#8220;follow along&#8221; by checking out revisions.</p>
<p>Of course, this is assuming you&#8217;ve got a decent handle on how to check out a specific revision from Subversion. I&#8217;m not sure that always applies to folks looking for a from-the-start tutorial, but the idea is really cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/09/05/nice-djangodojo-ajax-toolkit-tutorial/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Django Queue Service</title>
		<link>http://www.rhonabwy.com/wp/2007/08/25/django-queue-service/</link>
		<comments>http://www.rhonabwy.com/wp/2007/08/25/django-queue-service/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 06:15:08 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[Ranting and Reflections]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/08/25/django-queue-service/</guid>
		<description><![CDATA[I know I&#8217;ve been quiet on the Django front for a while. Here&#8217;s something to make up for it. Without further ado, let me present to the world the Django Queue Service.
At OSCON 2007, I was hunting around for something to use to deal with background processing initiated from my web application. Not finding anything [...]]]></description>
			<content:encoded><![CDATA[<p>I know I&#8217;ve been quiet on the Django front for a while. Here&#8217;s something to make up for it. Without further ado, let me present to the world the <a href="http://django-queue-service.googlecode.com/">Django Queue Service</a>.</p>
<p>At <a href="http://conferences.oreillynet.com/os2007/">OSCON 2007</a>, I was hunting around for something to use to deal with background processing initiated from my web application. Not finding anything that I could immediately use and implement, I took it as a challenge to knock out something in the time I was there. The result is the <a href="http://django-queue-service.googlecode.com/">django queue service</a>.</p>
<p>It was later in the week (at the Django BOF) that I learned about <a href="http://code.sixapart.com/svn/TheSchwartz/">TheSchwartz</a> and <a href="http://danga.com/gearman/">Gearman</a>, which <a href="http://bradfitz.com/">Brad Fitzpatrick</a> is hacking away it to make a queue mechanism available for fellow Python and Ruby geeks.</p>
<p>At the time, I thought &#8220;I wonder if I can hack this out in a week&#8230;&#8221; Well, yes I could. I modeled the service after the REST API from the <a href="http://www.amazon.com/Simple-Queue-Service-home-page/b?ie=UTF8&#038;node=13584001">Amazon Simple Queue Service</a>, because that seemed both reasonable and effective. And I didn&#8217;t mind the idea of having my own Queue that (mostly) matched that API that I didn&#8217;t have to pay anything to use.</p>
<p>The project also contains from code from the <a href="http://www.cherrypy.org/">CherryPy project</a>. <a href="http://www.compoundthinking.com/blog/">Mark Ramm</a> (a really nice fellow, by the way) gave <a href="http://conferences.oreillynet.com/cs/os2007/view/e_sess/12717">a session at OSCON about WSGI servers</a> that was really intriguing. I&#8217;ve been looking for a &#8220;pure python&#8221; service to run Django with for a while, and after chatting a bit with him, thought I could probably make it happen with the CherryPy WSGI server. So I did. I have <a href="http://django-queue-service.googlecode.com/svn/trunk/server.py">a little piece of linkage code</a> that fires up the CherryPy WSGI server code and links it right on through into Django. I didn&#8217;t want to use the rest of CherryPy, so I nicked <a href="http://django-queue-service.googlecode.com/svn/trunk/wsgiserver/__init__.py">that code</a> and dropped it into this project as a nice reference and a handy way to run the queue.</p>
<p>I suppose this project could easily end here, and of course there was the &#8220;but I want to&#8230;&#8221; list of things that I had in mind to do before I released it into the world. Well - as they saying goes: &#8220;<a href="http://www.python.org/dev/peps/pep-0020/">Now is better than never.</a>&#8221; so out it goes.</p>
<p>If you are interested in getting involved with the project, sending me patches, or whatever - let me know. You can leave a comment here or use that spiffy <a href="http://code.google.com/p/django-queue-service/issues/list">Google Code Hosting issue tracker</a>. The project is functional, but not brilliant - an not entirely cleaned up in terms of its API. But enough excuses - <a href="http://django-queue-service.googlecode.com/">its there</a>, feel free to use it or not as you like, contribute or not as you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/08/25/django-queue-service/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OSCON 2007</title>
		<link>http://www.rhonabwy.com/wp/2007/07/24/oscon-2007/</link>
		<comments>http://www.rhonabwy.com/wp/2007/07/24/oscon-2007/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 16:52:20 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[Ranting and Reflections]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/07/24/oscon-2007/</guid>
		<description><![CDATA[Day 1 of OSCON 2007 is done, and we&#8217;re working into Day 2 at this point. The afternoon tutorial &#8220;Django Master Class&#8221; was excellent, and the details of the talk are conveniently available on Jacob&#8217;s web site. Jeremy, Jacob, and Simon did a terrific job of it, and there was a lot of great tidbits [...]]]></description>
			<content:encoded><![CDATA[<p>Day 1 of OSCON 2007 is done, and we&#8217;re working into Day 2 at this point. The afternoon tutorial &#8220;Django Master Class&#8221; was excellent, and the details of the talk are conveniently available on <a href="http://toys.jacobian.org/presentations/2007/oscon/tutorial/">Jacob&#8217;s web site</a>. Jeremy, Jacob, and Simon did a terrific job of it, and there was a lot of great tidbits in there that I hadn&#8217;t seen earlier. Since when did the testing framework get so tremendously improved?! It&#8217;s really impressive!</p>
<p>I also got a chance to meet <a href="http://e-scribe.com/">Paul Bissex</a>, who wrote briefly about <a href="http://e-scribe.com/news/377">the first day of OSCO</a>. He&#8217;s in the Python WSGI session with me now.</p>
<p>Speaking of which, I&#8217;ve now learned about <a href="http://www.opensource4you.com/cgi-bin/gitweb.cgi">FAPWS</a> from <a href="http://william-os4y.livejournal.com/">William</a> (<a href="http://www.opensource4you.com/downloads/">downloads</a>) which was one of the WSGI servers mentioned, and apparently tested with Paul&#8217;s simple wiki code. It uses <a href="http://www.monkey.org/~dugsong/pyevent/">PyEvent</a> under the covers, and apparently achieves some very nice performance characteristics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/07/24/oscon-2007/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NoonHat</title>
		<link>http://www.rhonabwy.com/wp/2007/06/19/noonhat/</link>
		<comments>http://www.rhonabwy.com/wp/2007/06/19/noonhat/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 05:48:05 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/06/19/noonhat/</guid>
		<description><![CDATA[Brian Dorsey has just launched a really interesting site - NoonHat. It&#8217;s apparently written in Django (yeah!!!), and the first lunches set up with it happened today. It&#8217;s basically a &#8220;blind lunch&#8221; - you and up to 5 other people that are just tossed together by signing up on the site and indicating a region [...]]]></description>
			<content:encoded><![CDATA[<p>Brian Dorsey has just launched a really interesting site - <a href="http://www.noonhat.com/lunch/">NoonHat</a>. It&#8217;s apparently written in <a href="http://www.djangoproject.com/">Django</a> (yeah!!!), and the first lunches set up with it happened today. It&#8217;s basically a &#8220;blind lunch&#8221; - you and up to 5 other people that are just tossed together by signing up on the site and indicating a region where you&#8217;d like to eat lunch.</p>
<p>I haven&#8217;t heard how the initial lunches turned out, but the concept is really interesting and I think I&#8217;ll have to sign up for a lunch or two in the future when I&#8217;m not feeling so drained of the ability to be an extrovert.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/06/19/noonhat/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ReviewBoard</title>
		<link>http://www.rhonabwy.com/wp/2007/06/01/reviewboard/</link>
		<comments>http://www.rhonabwy.com/wp/2007/06/01/reviewboard/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 23:29:39 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/06/01/reviewboard/</guid>
		<description><![CDATA[Over the past day or so, some really neat code has come available, written in Django - ReviewBoard (project site for ReviewBoard).
Not surprisingly, I downloaded the source and immediately tried to see if I could get it to work on my &#8220;day&#8221; desktop. Unfortunately, they&#8217;re using the python class POpen3 inside the code somewhere, and [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past day or so, some really neat code has come available, written in Django - <a target="_blank" href="http://www.chipx86.com/blog/?p=222">ReviewBoard </a>(<a target="_blank" href="http://code.google.com/p/reviewboard/">project site for ReviewBoard</a>).</p>
<p>Not surprisingly, I downloaded the source and immediately tried to see if I could get it to work on my &#8220;day&#8221; desktop. Unfortunately, they&#8217;re using the <a target="_blank" href="http://docs.python.org/lib/module-popen2.html">python class POpen3</a> inside the code somewhere, and that&#8217;s not available on Windows - so I&#8217;ll have to wait until I can get to my desktop at home or a build a quick VM to try this out.</p>
<p>Just the fact that it supported Perforce out of the box damn near landed me on the floor. Of course, these guys are from <a target="_blank" href="http://www.vmware.com/">VMWare</a>, and I knew they used Perforce - but that connection didn&#8217;t click in my brain immediately. Since I&#8217;m using Perforce at work, I&#8217;m really hoping to see if I can cobble something together and do a little &#8220;check it out!&#8221; show and tell with the groups around me. Regardless of their uptake, it&#8217;s a great tool from the brief look I&#8217;ve taken from it - and open source to boot. (What was I saying about not having a lot of time recently? damnit&#8230;)</p>
<p>Well, hopefully I can just use it out of the box, and maybe even give a quizical eye to some friends who are using Perforce to see if they are interested in trying it out for their internal use.</p>
<p>Now I wonder what it would take to have it pull diffs from Trac bugs in <a target="_blank" href="http://code.djangoproject.com/">a certain well known Trac instance</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/06/01/reviewboard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using OpenID with your Django site</title>
		<link>http://www.rhonabwy.com/wp/2007/04/23/using-openid-with-your-django-site/</link>
		<comments>http://www.rhonabwy.com/wp/2007/04/23/using-openid-with-your-django-site/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 05:10:56 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/04/23/using-openid-with-your-django-site/</guid>
		<description><![CDATA[In case you missed it on the Django lists, RSS feeds, and other good tidbits - Simon Willison posted about, and made available, code to enable pretty much any Django based site to take advantage of OpenID.
He took a really interesting tack - instead of tieing OpenID into the authentication system that comes as a [...]]]></description>
			<content:encoded><![CDATA[<p>In case you missed it on the Django lists, RSS feeds, and other good tidbits - <a href="http://simonwillison.net/2007/Apr/24/openidconsumer/">Simon Willison posted about</a>, and <a href="http://code.google.com/p/django-openid/">made available</a>, code to enable pretty much any Django based site to take advantage of OpenID.</p>
<p>He took a really interesting tack - instead of tieing OpenID into the authentication system that comes as a part of Django (contrib.auth), he overlaid the session tidbits with a middleware component that passes information into your views (and potentially your templates) as an extension on the request object. So instead of using the Django auth mechanisms for your OpenID users, you can let it ride without permissions and really even heavy tracking of those users just through their OpenID. </p>
<p>Obviously that may not be quite what you&#8217;re looking for, but in taking advantage of enabling <i>some</i> light level of authentication and identity to a public site, it&#8217;s really in a sweet spot.</p>
<p>I was really impressed with is how he packaged the whole kit for someone to take a look at, learn, and use. First off, there&#8217;s <a href="http://django-openid.googlecode.com/svn/trunk/openid.html">a great &#8220;single-page&#8221; documentation page</a> right in the source, along with <a href="http://django-openid.googlecode.com/svn/trunk/openid.txt">a .txt counterpart</a>. The in addition to the <a href="http://django-openid.googlecode.com/svn/trunk/django_openidconsumer/">core code itself</a>, he packaged up a super-light django &#8220;example&#8221; application that most folks will be able to pull down and immediately fire up to get a sense of what it is doing and how to use it.</p>
<p>In working with Fritz to <a href="http://www.cogitooptimus.com/2007/03/29/enabling-openid/">implement TrenchMice&#8217;s OpenID</a> consumer support, we ran into a number of problems when we bound OpenID into the heavier weight contrib.auth setup. &#8220;Required&#8221; fields were not always returned from the OpenID provided when requested through the registration extensions, and he ended up iterating on the process a couple times to finally route the OpenID registration process into their normal registration process when there wasn&#8217;t enough information to fully process things.</p>
<p>Clearly, if you don&#8217;t need the heavier weight (contrib.auth) setup, Simon&#8217;s contribution will be a godsend to your application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/04/23/using-openid-with-your-django-site/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading Django - AddManipulators and backwards incompatible changes</title>
		<link>http://www.rhonabwy.com/wp/2007/04/21/upgrading-django-addmanipulators-and-backwards-incompatible-changes/</link>
		<comments>http://www.rhonabwy.com/wp/2007/04/21/upgrading-django-addmanipulators-and-backwards-incompatible-changes/#comments</comments>
		<pubDate>Sun, 22 Apr 2007 06:15:39 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/04/21/upgrading-django-addmanipulators-and-backwards-incompatible-changes/</guid>
		<description><![CDATA[I was doing some upgrading of a Django site, getting rid of some of the pieces that are listed in the upcoming backwards-incompatible changes list. Learned some interesting tidbits&#8230;
For one, the AddManipulators (being deprecated as things move to newforms instead of the Manipulators setup) don&#8217;t play nicely with the removal of LazyDate and auto_add_now functionality [...]]]></description>
			<content:encoded><![CDATA[<p>I was doing some upgrading of a Django site, getting rid of some of the pieces that are listed in the upcoming <a href="http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges">backwards-incompatible changes list</a>. Learned some interesting tidbits&#8230;</p>
<p>For one, the AddManipulators (being deprecated as things move to <a href="http://www.djangoproject.com/documentation/newforms/">newforms</a> instead of the Manipulators setup) don&#8217;t play nicely with the removal of LazyDate and auto_add_now functionality from the older models setup. My terribly hack workaround, since I don&#8217;t use too many of the AddManipulators, is to tweak them when I run into it. </p>
<p>In particular I&#8217;m storing &#8220;creation_time&#8221; for some objects (which had been set to auto_add_now), and the AddManipulator decided that it was required, regardless of &#8220;null=True&#8221; or other goodies. I was overriding the save() method in the model - so I&#8217;m getting the data&#8230; but the Manipulator was being a pain. My tweak for the Manipulator went something like this:</p>
<p><code>
<pre>
book_manipulator = Book.AddManipulator()
for field in topic_manipulator.fields:
  if field.field_name.startswith('creation_time'):
    field.is_required=False
</pre>
<p></code></p>
<p>Which appears to have resolved the whole &#8220;creation_time_time&#8221; and &#8220;creation_time_date&#8221; fields being required and stuffing up my otherwise nicely functioning forms. Hopefully nobody else will run into this and need this hack (at least until I get rid of the AddManipulators in favor of the newforms setup) - but just in case, I thought I&#8217;d make it nicely available for Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/04/21/upgrading-django-addmanipulators-and-backwards-incompatible-changes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mac Hybrid Apps - DjangoKit</title>
		<link>http://www.rhonabwy.com/wp/2007/04/10/mac-hybrid-apps-djangokit/</link>
		<comments>http://www.rhonabwy.com/wp/2007/04/10/mac-hybrid-apps-djangokit/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 04:36:58 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/04/10/mac-hybrid-apps-djangokit/</guid>
		<description><![CDATA[At C4 last year, Brent gave a talk on Hybrid apps - and then graciously redid the same talk for the XCoders. Along those lines, Paul Bissex wrote a short bit about DjangoKit today.
Being a fan of that particular framework, I find it pretty interesting. It&#8217;s not quite in the realm of the hybrid application [...]]]></description>
			<content:encoded><![CDATA[<p>At C4 last year, Brent gave a talk on Hybrid apps - and then <a href="http://www.seattlexcoders.org/article/13/brent-simmons-hybrid-applictions">graciously redid the same talk for the XCoders</a>. Along those lines, <a href="http://e-scribe.com/news/355">Paul Bissex wrote a short bit</a> about <a href="http://jerakeen.org/blog/2007/03/djangokit/">DjangoKit</a> today.</p>
<p>Being a fan of that particular framework, I find it pretty interesting. It&#8217;s not quite in the realm of the hybrid application that Brent was talking about, but it&#8217;s definitely another take on how you can get some functionality on the desktop in a consistent way pretty darn quickly. I still think straight Desktop style apps that do the cool whizzy feedback will keep their place, but the possibilities for something like DjangoKit to make a quick appliance wrapper interface is really appealing to me. (DjangoKit on Apple TV?)</p>
<p>I haven&#8217;t tried out DjangoKit, but I&#8217;ve got all the prereqs (that would be a copy of PyObjC on my laptop). It&#8217;ll be interesting to see where it goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/04/10/mac-hybrid-apps-djangokit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>more Django tech at TrenchMice</title>
		<link>http://www.rhonabwy.com/wp/2007/03/29/more-django-tech-at-trenchmice/</link>
		<comments>http://www.rhonabwy.com/wp/2007/03/29/more-django-tech-at-trenchmice/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 07:07:31 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/03/29/more-django-tech-at-trenchmice/</guid>
		<description><![CDATA[TrenchMice has a couple new articles posted on using Django - their deployment setup entitled Deploying TrenchMice and an article about implemented OpenID entitled Enabling OpenID.
Deploying TrenchMice has a really nice bit of detail on how they&#8217;ve set up Django for development in a team with multiple environments sharing the same code base. 
The Enabling [...]]]></description>
			<content:encoded><![CDATA[<p>TrenchMice has a couple new articles posted on using Django - their deployment setup entitled <a href="http://www.cogitooptimus.com/2007/03/21/deploying-trenchmice/">Deploying TrenchMice</a> and an article about implemented <a href="http://openid.net/">OpenID</a> entitled <a href="http://www.cogitooptimus.com/2007/03/29/enabling-openid/">Enabling OpenID</a>.</p>
<p><a href="http://www.cogitooptimus.com/2007/03/21/deploying-trenchmice/">Deploying TrenchMice</a> has a really nice bit of detail on how they&#8217;ve set up Django for development in a team with multiple environments sharing the same code base. </p>
<p>The <a href="http://www.cogitooptimus.com/2007/03/29/enabling-openid/">Enabling OpenID</a> article details out the rough sketch of the code they used to tack on OpenID authentication to a Django web application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/03/29/more-django-tech-at-trenchmice/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Django syntax highlighting</title>
		<link>http://www.rhonabwy.com/wp/2007/01/30/django-syntax-highlighting/</link>
		<comments>http://www.rhonabwy.com/wp/2007/01/30/django-syntax-highlighting/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 18:34:49 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
		
		<category><![CDATA[Geekstuff]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.rhonabwy.com/wp/2007/01/30/django-syntax-highlighting/</guid>
		<description><![CDATA[I spotted this on the http://groups.google.com/group/django-usersDjango-users mailing list. Dave Hodder has made available update syntax highlighting files for VIM. - available at http://www.vim.org/scripts/script.php?script_id=1487
I&#8217;ve no idea if any yet exist for emacs, but there&#8217;s defiinitely a nice set available for TextMate.
]]></description>
			<content:encoded><![CDATA[<p>I spotted this on the <a href="http://groups.google.com/group/django-users">http://groups.google.com/group/django-users</a>Django-users mailing list. Dave Hodder has made available update syntax highlighting files for VIM. - available at <a target="_blank" onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vim.org/scripts/script.php?script_id=1487">http://www.vim.org/scripts/script.php?script_id=1487</a><br />
I&#8217;ve no idea if any yet exist for emacs, but there&#8217;s defiinitely <a xhref="http://code.djangoproject.com/wiki/TextMate">a nice set available for TextMate</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhonabwy.com/wp/2007/01/30/django-syntax-highlighting/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
