<?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: Change The Django Source Directory With A .pth File</title>
	<atom:link href="http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/</link>
	<description>Technical thoughts of a coffee addicted developer</description>
	<lastBuildDate>Sun, 26 Jul 2009 13:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John DeRosa</title>
		<link>http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/comment-page-1/#comment-164</link>
		<dc:creator>John DeRosa</dc:creator>
		<pubDate>Wed, 13 Feb 2008 00:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/#comment-164</guid>
		<description>Success!

My problem was that django_0.96.1 contained the contents of http://code.djangoproject.com/browser/django/tags/releases/0.96.1/django, and not http://code.djangoproject.com/browser/django/tags/releases/0.96.1.

I&#039;m going to use this technique from now on, instead of junctions.  Much thanks for the pointer!

John</description>
		<content:encoded><![CDATA[<p>Success!</p>
<p>My problem was that django_0.96.1 contained the contents of <a href="http://code.djangoproject.com/browser/django/tags/releases/0.96.1/django" rel="nofollow">http://code.djangoproject.com/browser/django/tags/releases/0.96.1/django</a>, and not <a href="http://code.djangoproject.com/browser/django/tags/releases/0.96.1" rel="nofollow">http://code.djangoproject.com/browser/django/tags/releases/0.96.1</a>.</p>
<p>I&#8217;m going to use this technique from now on, instead of junctions.  Much thanks for the pointer!</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alistair</title>
		<link>http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/comment-page-1/#comment-162</link>
		<dc:creator>Alistair</dc:creator>
		<pubDate>Tue, 12 Feb 2008 06:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/#comment-162</guid>
		<description>John,

A couple quick bits:

 * I have Python installed at &lt;code&gt;C:\Program Files\Python25\&lt;/code&gt;
 * The Django repository (http://code.djangoproject.com/svn/django) is checked out into &lt;code&gt;C:\Projects\Django\&lt;/code&gt;
 * My django.pth file, located under ${install_path}\Lib\site-packages\ contains a single line &lt;code&gt;C:\Projects\Django\trunk\&lt;/code&gt;

After doing that and opening a new Python shell, &lt;code&gt;sys.path&lt;/code&gt; shows:

[&#039;&#039;, &#039;C:\\WINDOWS\\system32\\python25.zip&#039;, &#039;C:\\Program Files\\Python25\\DLLs&#039;, &#039;C:\\Program Files\\Python25\\lib&#039;, &#039;C:\\Program Files\\Python25\\lib\\plat-win&#039;,&#039;C:\\Program Files\\Python25\\lib\\lib-tk&#039;, &#039;C:\\Program Files\\Python25&#039;, &#039;C:\\Program Files\\Python25\\lib\\site-packages&#039;,&#039;C:\\Projects\\Django\\trunk&#039;]

One difference I can see at the moment, is that I&#039;m using an absolute path to the Django source code and you&#039;re using a relative one. Of course, once the site package reads either value in, they are both showing what I&#039;d consider an appropriate value.

Just to be sure, you&#039;d need to have your django_0.96.1 directory pointing at the source found in http://code.djangoproject.com/browser/django/tags/releases/0.96.1/, ie that a folder named &lt;em&gt;django&lt;/em&gt; exists under it. If you&#039;re pointing that directory into http://code.djangoproject.com/browser/django/tags/releases/0.96.1/django/, I don&#039;t believe it&#039;ll work.

Regards,
Al.</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>A couple quick bits:</p>
<p> * I have Python installed at <code>C:\Program Files\Python25\</code><br />
 * The Django repository (<a href="http://code.djangoproject.com/svn/django" rel="nofollow">http://code.djangoproject.com/svn/django</a>) is checked out into <code>C:\Projects\Django\</code><br />
 * My django.pth file, located under ${install_path}\Lib\site-packages\ contains a single line <code>C:\Projects\Django\trunk\</code></p>
<p>After doing that and opening a new Python shell, <code>sys.path</code> shows:</p>
<p>['', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\Program Files\\Python25\\DLLs', 'C:\\Program Files\\Python25\\lib', 'C:\\Program Files\\Python25\\lib\\plat-win','C:\\Program Files\\Python25\\lib\\lib-tk', 'C:\\Program Files\\Python25', 'C:\\Program Files\\Python25\\lib\\site-packages','C:\\Projects\\Django\\trunk']</p>
<p>One difference I can see at the moment, is that I&#8217;m using an absolute path to the Django source code and you&#8217;re using a relative one. Of course, once the site package reads either value in, they are both showing what I&#8217;d consider an appropriate value.</p>
<p>Just to be sure, you&#8217;d need to have your django_0.96.1 directory pointing at the source found in <a href="http://code.djangoproject.com/browser/django/tags/releases/0.96.1/" rel="nofollow">http://code.djangoproject.com/browser/django/tags/releases/0.96.1/</a>, ie that a folder named <em>django</em> exists under it. If you&#8217;re pointing that directory into <a href="http://code.djangoproject.com/browser/django/tags/releases/0.96.1/django/" rel="nofollow">http://code.djangoproject.com/browser/django/tags/releases/0.96.1/django/</a>, I don&#8217;t believe it&#8217;ll work.</p>
<p>Regards,<br />
Al.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John DeRosa</title>
		<link>http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/comment-page-1/#comment-161</link>
		<dc:creator>John DeRosa</dc:creator>
		<pubDate>Tue, 12 Feb 2008 03:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://ifdebug.com/articles/change-the-django-source-directory-with-a-pth-file/#comment-161</guid>
		<description>Thank you for this post!  This does indeed sound easier than using junctions.  BUT I can&#039;t get it working on my windows box.  Can you see what I&#039;m doing wrong?

Here&#039;s my setup:

* I have Python25\Lib\site-packages\django_versions\django_0.96.1, and ...\django_versions\trunk\django.  Each of these folders just what you think they contain. :-)

* ...\Lib\site-packages\django.pth contains:

     # Django path file
     django_versions\django_0.96.1

The problem: Python can&#039;t find Django.  (E.g., &quot;Import Error: No module names django.core&quot;)  I&#039;ve tried forward and backward slashes, no difference.  sys.path appears to have what it ought to have:

&gt;&gt;&gt; sys.path
[&#039;&#039;, &#039;c:\\python25\\lib\\site-packages\\setuptools-0.6c3-py2.5.egg&#039;, &#039;f:\\tm\\trunk\\src&#039;, &#039;f:\
\tm\\trunk\\src\\webcode&#039;, &#039;C:\\WINDOWS\\system32\\python25.zip&#039;, &#039;c:\\python25\\DLLs&#039;, &#039;c:\\py
thon25\\lib&#039;, &#039;c:\\python25\\lib\\plat-win&#039;, &#039;c:\\python25\\lib\\lib-tk&#039;, &#039;c:\\python25&#039;, &#039;c:\\
python25\\lib\\site-packages&#039;, &#039;c:\\python25\\lib\\site-packages\\PIL&#039;, &#039;c:\\python25\\lib\\sit
e-packages\\django_versions\\django_0.96.1&#039;, &#039;c:\\python25\\lib\\site-packages\\win32&#039;, &#039;c:\\py
thon25\\lib\\site-packages\\win32\\lib&#039;, &#039;c:\\python25\\lib\\site-packages\\Pythonwin&#039;, &#039;c:\\py
thon25\\lib\\site-packages\\wx-2.7.2-msw-ansi&#039;]

What am I doing wrong?</description>
		<content:encoded><![CDATA[<p>Thank you for this post!  This does indeed sound easier than using junctions.  BUT I can&#8217;t get it working on my windows box.  Can you see what I&#8217;m doing wrong?</p>
<p>Here&#8217;s my setup:</p>
<p>* I have Python25\Lib\site-packages\django_versions\django_0.96.1, and &#8230;\django_versions\trunk\django.  Each of these folders just what you think they contain. :-)</p>
<p>* &#8230;\Lib\site-packages\django.pth contains:</p>
<p>     # Django path file<br />
     django_versions\django_0.96.1</p>
<p>The problem: Python can&#8217;t find Django.  (E.g., &#8220;Import Error: No module names django.core&#8221;)  I&#8217;ve tried forward and backward slashes, no difference.  sys.path appears to have what it ought to have:</p>
<p>&gt;&gt;&gt; sys.path<br />
['', 'c:\\python25\\lib\\site-packages\\setuptools-0.6c3-py2.5.egg', 'f:\\tm\\trunk\\src', 'f:\<br />
\tm\\trunk\\src\\webcode', 'C:\\WINDOWS\\system32\\python25.zip', 'c:\\python25\\DLLs', 'c:\\py<br />
thon25\\lib', 'c:\\python25\\lib\\plat-win', 'c:\\python25\\lib\\lib-tk', 'c:\\python25', 'c:\\<br />
python25\\lib\\site-packages', 'c:\\python25\\lib\\site-packages\\PIL', 'c:\\python25\\lib\\sit<br />
e-packages\\django_versions\\django_0.96.1', 'c:\\python25\\lib\\site-packages\\win32', 'c:\\py<br />
thon25\\lib\\site-packages\\win32\\lib', 'c:\\python25\\lib\\site-packages\\Pythonwin', 'c:\\py<br />
thon25\\lib\\site-packages\\wx-2.7.2-msw-ansi']</p>
<p>What am I doing wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
