<?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>Daniel Hepper &#187; Python</title>
	<atom:link href="http://daniel.hepper.net/blog/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.hepper.net/blog</link>
	<description>Random geeky stuff</description>
	<lastBuildDate>Wed, 04 Jan 2012 09:12:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using Python Packages &#8211; An Overview</title>
		<link>http://daniel.hepper.net/blog/2011/01/using-python-packages-an-overview/</link>
		<comments>http://daniel.hepper.net/blog/2011/01/using-python-packages-an-overview/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 21:47:14 +0000</pubDate>
		<dc:creator>Daniel Hepper</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[packaging]]></category>
		<category><![CDATA[pycologne]]></category>
		<category><![CDATA[talk]]></category>

		<guid isPermaLink="false">http://daniel.hepper.net/blog/?p=210</guid>
		<description><![CDATA[Yesterday I gave a presentation at PyCologne about Python packages. It was meant as a kind of sequel to the &#8220;Cooking Eggs&#8221; talk given by Christopher Arndt (in German) in September. While he presented ways to create Python packages, I &#8230; <a href="http://daniel.hepper.net/blog/2011/01/using-python-packages-an-overview/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I gave a presentation at <a href="http://pycologne.de">PyCologne</a> about Python packages. It was meant as a kind of sequel to the <a href="http://chrisarndt.de/talks/cooking-eggs/cooking-eggs-vortrag.html">&#8220;Cooking Eggs&#8221; talk given by Christopher Arndt (in German)</a> in September. While he presented ways to create Python packages, I focused on how to use Python packages.</p>
<p>Python comes with batteries included, but sometimes, battery power is not enough. Thankfully, there are countless packages available for use. Given that there &#8220;<a href="http://www.python.org/dev/peps/pep-0020/">should be one&#8211; and preferably only one &#8211;obvious way to do it</a>,&#8221; using Python packages can be quite intimidating. The documentation of your package might say to download, unzip und run <code>python setup.py install</code>. Meet distutils. Or just do <code>easy_install MyPackage</code>, which is uses <a href="http://pypi.python.org/pypi/setuptools">setuptools</a>. But then you <a href="http://guide.python-distribute.org/introduction.html#current-state-of-packaging">hear</a> that setuptools is superseeded by <a href="http://packages.python.org/distribute/">distribute</a> and instead of <code>easy_install</code>, you should use <code><a href="http://pip.openplans.org/">pip</a></code>. And then there is <code><a href="http://virtualenv.openplans.org/">virtualenv</a></code>, which is awesome, but can be even more awesome with <code><a href="http://www.doughellmann.com/projects/virtualenvwrapper/">virtualenvwrapper</a></code>. What a mess! </p>
<p>My conclusion: use <code><a href="http://packages.python.org/distribute/">distribute</a></code>, <code><a href="http://pip.openplans.org/">pip</a></code>, <code><a href="http://virtualenv.openplans.org/">virtualenv</a></code> and <code><a href="http://www.doughellmann.com/projects/virtualenvwrapper/">virtualenvwrapper</a></code>.</p>
<p>You can <a href='http://daniel.hepper.net/blog/wp-content/python_packages_pycologne.pdf'>download the slides</a> or view them with Slideshare:</p>
<div style="width:425px" id="__ss_6553097"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/danielhepper/using-python-packages-an-overview" title="Using Python Packages - An Overview">Using Python Packages &#8211; An Overview</a></strong><object id="__sse6553097" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=pythonpackagespycologne-110113151547-phpapp01&#038;rel=0&#038;stripped_title=using-python-packages-an-overview&#038;userName=danielhepper" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse6553097" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=pythonpackagespycologne-110113151547-phpapp01&#038;rel=0&#038;stripped_title=using-python-packages-an-overview&#038;userName=danielhepper" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/danielhepper">danielhepper</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://daniel.hepper.net/blog/2011/01/using-python-packages-an-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slides from EuroDjangoCon</title>
		<link>http://daniel.hepper.net/blog/2009/05/slides-from-the-eurodjangocon/</link>
		<comments>http://daniel.hepper.net/blog/2009/05/slides-from-the-eurodjangocon/#comments</comments>
		<pubDate>Tue, 05 May 2009 06:57:58 +0000</pubDate>
		<dc:creator>Daniel Hepper</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[eurodjangocon]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://daniel.hepper.net/blog/?p=71</guid>
		<description><![CDATA[These are the slides and code of talks given at the EuroDjangoCon, which is held in Prague from May 4th to May 6th. This information can also be found in the EuroDjangoCon Wiki. Day 1: Zed Shaw (@zedshaw): Opening Keynote &#8230; <a href="http://daniel.hepper.net/blog/2009/05/slides-from-the-eurodjangocon/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These are the slides and code of talks given at the EuroDjangoCon, which is held in Prague from May 4th to May 6th. This information can also be found in the <a href="http://eurodjangocon.pbworks.com/Presentations">EuroDjangoCon Wiki</a>.</p>
<p><strong>Day 1:</strong></p>
<ul>
<li>Zed Shaw (<a href="http://twitter.com/zedshaw">@zedshaw</a>): <a href="http://zedshaw.com/blog/2009-05-04.html">Opening Keynote</a></li>
<li>James Tauber<span id="msgtxt1707346657" class="msgtxt en"> (<a onclick="pageTracker._trackPageview('/exit/to/jtauber')" href="http://twitter.com/jtauber" target="_blank">@jtauber</a></span>): <a href="http://eldarion.com/talks/2009/05/eurodjangocon_djangopatterns.pdf">Django Patterns [PDF]</a></li>
<li>Andrew Godwin (<a href="http://twitter.com/andrewgodwin">@andrewgodwin)</a>: <a href="http://www.aeracode.org/static/edc09slides.pdf">Migrations: whywhyhowwho?</a></li>
<li>Paul Smith (<a onclick="pageTracker._trackPageview('/exit/to/paulsmith');" href="http://twitter.com/paulsmith" target="_blank">@paulsmith</a>): <a href="http://www.slideshare.net/pauladamsmith/the-web-map-stack-on-django">The web map stack on Django</a></li>
<li>Justin Lilly (<span id="msgtxt1695888991" class="msgtxt en"><a onclick="pageTracker._trackPageview('/exit/to/justinlilly')" href="http://twitter.com/justinlilly" target="_blank">@justinlilly</a>)</span>: <a href="http://justinlilly.com/blog/2009/may/04/eurodjangocon-django-30000-feet/">Django @ 30.000 feet</a></li>
<li>Simon Willison (<span id="msgtxt1705398406" class="msgtxt en"><a onclick="pageTracker._trackPageview('/exit/to/simonw')" href="http://twitter.com/simonw" target="_blank">@simonw</a></span>): <a href="http://www.slideshare.net/simon/django-heresies">Django Heresies</a></li>
</ul>
<p><strong>Day 2:</strong></p>
<ul>
<li>Honza Kral (<a href="http://twitter.com/HonzaKral">@HonzaKral</a>): <a href="http://honzakral.com/validation.pdf ">Model Aware Validation</a></li>
<li>Mike Malone (<span id="msgtxt1705781738" class="msgtxt en"><a onclick="pageTracker._trackPageview('/exit/to/mjmalone')" href="http://twitter.com/mjmalone" target="_blank">@mjmalone</a>)</span>: <a href="http://immike.net/files/scaling_django.pdf">Scaling Django Web Apps [PDF]</a> + <a href="http://github.com/mmalone">Code on Github<br />
</a></li>
<li>Eric Holscher (<span id="msgtxt1707626602" class="msgtxt en"><a onclick="pageTracker._trackPageview('/exit/to/ericholscher')" href="http://twitter.com/ericholscher" target="_blank">@ericholscher</a>)</span>: <a href="http://www.slideshare.net/ericholscher/testing-slides-1387499">Django Testing</a></li>
<li>Peter Baumgartner, Michael Trythall (<a onclick="pageTracker._trackPageview('/exit/to/LincolnLoop');" href="http://twitter.com/LincolnLoop" target="_blank">@LincolnLoop</a>): <a href="http://lincolnloop.com/assets/Customizing_the_Django_Admin-EuroDjangoCon09.pdf">Customizing the Django Admin [PDF]</a></li>
<li>Alex Gaynor (<a onclick="pageTracker._trackPageview('/exit/to/alex_gaynor')" href="http://twitter.com/alex_gaynor" target="_blank">@alex_gaynor</a>): <a href="http://www.slideshare.net/kingkilr/forms-getting-your-moneys-worth">Forms, Getting Your Money&#8217;s Worth</a></li>
<li>Joe Stump (<a href="http://twitter.com/joestump">@joestump</a>) <a href="http://eurodjangocon.pbworks.com/f/Rethinking_the_Stack.key.zip">Rethinking the Stack</a></li>
</ul>
<p><strong>Day 3:</strong></p>
<ul style="text-align: left;">
<li>Franz Wierzbicki (<a href="http://twitter.com/fwierzbicki">@fwierzbicki</a>): <a href="http://www.slideshare.net/fwierzbicki/jython-on-django">Django on Jython</a></li>
<li>David Larlet (<a href="http://twitter.com/davidbgk">@davidbgk</a>): State of the art and future of Semantic stuff in Django (panel)</li>
<li>Leah Culver (<a href="http://twitter.com/leahculver">@leahculver</a>): The Next Big Thing</li>
<li>James Tauber <span id="msgtxt1707346657" class="msgtxt en"> (<a onclick="pageTracker._trackPageview('/exit/to/jtauber')" href="http://twitter.com/jtauber" target="_blank">@jtauber</a></span>): <a href="http://bit.ly/18bumK">State of Pinax</a></li>
<li>Joe Stump (<a href="http://twitter.com/joestump">@joestump</a>): Working with large data sets</li>
<li>Andy Smith (<a href="http://twitter.com/termie">@termie</a>): <a href="http://term.ie/data/MigratingFromLampToAppEngine.pdf">Migrating from LAMP to App Engine</a></li>
</ul>
<p>Other:</p>
<ul>
<li><a href="http://www.flickr.com/photos/dibau_naum_h/tags/eurodjangocon/">Mindmap summaries</a> by <a href="http://twitter.com/dibau_naum_h">@dibau_naum_h</a></li>
<li><a href="http://eurodjangocon.pbworks.com/Lightning-Talks">Lightning talks</a></li>
</ul>
<p>This post will be updated over time. Please leave a comment if you think something is missing.</p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.hepper.net/blog/2009/05/slides-from-the-eurodjangocon/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Building a site with Django? Start with Pinax!</title>
		<link>http://daniel.hepper.net/blog/2008/11/building-a-site-with-django-start-with-pinax/</link>
		<comments>http://daniel.hepper.net/blog/2008/11/building-a-site-with-django-start-with-pinax/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 14:29:38 +0000</pubDate>
		<dc:creator>Daniel Hepper</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://daniel.hepper.net/blog/?p=22</guid>
		<description><![CDATA[Some time ago, I watched James Tauber&#8217;s talk at DjangoCon about Pinax, a collection of re-usable Django applications. If you are thinking of a collection as a bunch of apps carelessly thrown together, you could not be more mistaken. Pinax &#8230; <a href="http://daniel.hepper.net/blog/2008/11/building-a-site-with-django-start-with-pinax/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some time ago, I watched James Tauber&#8217;s talk at DjangoCon about <a title="Pinax, a platform for rapidly developing websites" href="http://pinaxproject.com/">Pinax</a>, a collection of re-usable Django applications. If you are thinking of a collection as a bunch of apps carelessly thrown together, you could not be more mistaken. Pinax is the foundation for a complete social networking site which covers most features you can imagine, the whole nine yards.</p>
<p>Forget <code>django-admin.py startproject</code>! Just do <code>cp pinax myproject</code>, remove some stuff you don&#8217;t need, adjust the templates and you are done!</p>
<p>Ok, I might be exagerating a bit, but watch the talk to build your own opinion.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/1J91Ownq-7g&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/1J91Ownq-7g&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://daniel.hepper.net/blog/2008/11/building-a-site-with-django-start-with-pinax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pitfalls in Django unittests</title>
		<link>http://daniel.hepper.net/blog/2008/09/pitfalls-in-django-unittests/</link>
		<comments>http://daniel.hepper.net/blog/2008/09/pitfalls-in-django-unittests/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 13:10:32 +0000</pubDate>
		<dc:creator>Daniel Hepper</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://daniel.hepper.net/blog/?p=9</guid>
		<description><![CDATA[I&#8217;m currently rewriting dwidder and I just spent way to much time on a unit test for the registration view. These are the things that made me stumble: Write fixtures. Unit tests run on an empty database. Somewhere deep in &#8230; <a href="http://daniel.hepper.net/blog/2008/09/pitfalls-in-django-unittests/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently rewriting <a title="German SMS-Twitter-Gateway" href="http://dwidder.de">dwidder</a> and I just spent way to much time on a unit test for the registration view. These are the things that made me stumble:</p>
<ol>
<li><strong>Write fixtures</strong>. Unit tests run on an empty database. Somewhere deep in your code might be a reference to one of the default applications, like django.contrib.sites, which will fail, because there is no default site object in your database.</li>
<li><strong>Don&#8217;t subclass unittest.TestCase</strong>. Use Django&#8217;s TestCase class instead. Otherwise you will miss all the fancy stuff, like automatic fixture loading.</li>
<li><strong>Import mail, not outbox.</strong> Django provides a dummy email outbox. But it to make it work as expected, you have to import the mail module. If you import the outbox directly, it will always be empty.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://daniel.hepper.net/blog/2008/09/pitfalls-in-django-unittests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

