<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Outputting Excel with Django</title>
	<atom:link href="http://reliablybroken.com/b/2009/09/outputting-excel-with-django/feed/" rel="self" type="application/rss+xml" />
	<link>http://reliablybroken.com/b/2009/09/outputting-excel-with-django/</link>
	<description>It&#039;s a blog: let&#039;s do funch!</description>
	<lastBuildDate>Sun, 13 May 2012 12:30:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: david</title>
		<link>http://reliablybroken.com/b/2009/09/outputting-excel-with-django/comment-page-1/#comment-1174</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 06 Oct 2010 21:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://reliablybroken.com/b/?p=276#comment-1174</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-1172&quot; rel=&quot;nofollow&quot;&gt;@Jorge &lt;/a&gt; 
You have the right idea about adding the path to PythonPath in your Apache config, but you may have the configuration slightly wrong. What is the exact Apache/Django config? You probably want something like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;PythonPath &quot;[&#039;/usr/local/lib/python2.6/dist-packages&#039;] + sys.path&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This would go in the section of your Apache conf where you have configured your Django project.&lt;/p&gt;

&lt;p&gt;Or it could be that your mod_python module is using a different installed version of Python (different to what you use from the shell).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-1172" rel="nofollow">@Jorge </a> 
You have the right idea about adding the path to PythonPath in your Apache config, but you may have the configuration slightly wrong. What is the exact Apache/Django config? You probably want something like:</p>

<pre><code>PythonPath "['/usr/local/lib/python2.6/dist-packages'] + sys.path"
</code></pre>

<p>This would go in the section of your Apache conf where you have configured your Django project.</p>

<p>Or it could be that your mod_python module is using a different installed version of Python (different to what you use from the shell).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://reliablybroken.com/b/2009/09/outputting-excel-with-django/comment-page-1/#comment-1172</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Wed, 06 Oct 2010 19:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://reliablybroken.com/b/?p=276#comment-1172</guid>
		<description>&lt;p&gt;Hi, xlwt module work very in my django application while it has in development server; but when install in a production server with apache-modpython, the reference to : &#039;import xlwt &#039;, fire the debug error &quot;No module named xlwt...&quot;&lt;/p&gt;

&lt;p&gt;If i run the python shell, the import xlwt command works fine.&lt;/p&gt;

&lt;p&gt;In the apache location, in my pythonpath i add the directory where is found (&#039;/usr/local/lib/python2.6/dist-packages/xlwt&#039;) but .....not work&lt;/p&gt;

&lt;p&gt;Solutions?, thanks in advance.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, xlwt module work very in my django application while it has in development server; but when install in a production server with apache-modpython, the reference to : &#8216;import xlwt &#8216;, fire the debug error &#8220;No module named xlwt&#8230;&#8221;</p>

<p>If i run the python shell, the import xlwt command works fine.</p>

<p>In the apache location, in my pythonpath i add the directory where is found (&#8216;/usr/local/lib/python2.6/dist-packages/xlwt&#8217;) but &#8230;..not work</p>

<p>Solutions?, thanks in advance.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Glen</title>
		<link>http://reliablybroken.com/b/2009/09/outputting-excel-with-django/comment-page-1/#comment-564</link>
		<dc:creator>Glen</dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://reliablybroken.com/b/?p=276#comment-564</guid>
		<description>&lt;p&gt;Thank you! This couldn&#039;t have come at a better time.&lt;/p&gt;

&lt;p&gt;Another improvement would be to add a headings variable with all or some columns needed so you can pull the information you want from values_list() and insert a heading row for the excel sheet.&lt;/p&gt;

&lt;p&gt;Example here: http://dpaste.com/hold/139260/&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you! This couldn&#8217;t have come at a better time.</p>

<p>Another improvement would be to add a headings variable with all or some columns needed so you can pull the information you want from values_list() and insert a heading row for the excel sheet.</p>

<p>Example here: <a href="http://dpaste.com/hold/139260/" rel="nofollow">http://dpaste.com/hold/139260/</a></p>]]></content:encoded>
	</item>
</channel>
</rss>

