<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Rob's Cogitations - Latest Comments in Django and Relativity Updated</title><link>http://cogit8.disqus.com/</link><description></description><atom:link href="https://cogit8.disqus.com/django_and_relativity_updated/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 08 May 2009 13:01:15 -0000</lastBuildDate><item><title>Re: Django and Relativity Updated</title><link>http://rob.cogit8.org/blog/2009/May/05/django-and-relativity-updated/#comment-9132907</link><description>&lt;p&gt;Define "bad".&lt;/p&gt;&lt;p&gt;As it's stated in the post, this is just my personal preference.  My intention with the blog post was to explain the differences and you can choose the best option for you.  I like realpath myself.  You can pick the best option for your use cases.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob Hudson</dc:creator><pubDate>Fri, 08 May 2009 13:01:15 -0000</pubDate></item><item><title>Re: Django and Relativity Updated</title><link>http://rob.cogit8.org/blog/2009/May/05/django-and-relativity-updated/#comment-9121653</link><description>&lt;p&gt;Why is eliminating symlinks good? If I symlink your app into my project, wouldn't it be bad if it still uses it's real location?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Julian</dc:creator><pubDate>Fri, 08 May 2009 04:06:52 -0000</pubDate></item><item><title>Re: Django and Relativity Updated</title><link>http://rob.cogit8.org/blog/2009/May/05/django-and-relativity-updated/#comment-9025647</link><description>&lt;p&gt;Hey Malcolm,&lt;/p&gt;&lt;p&gt;I agree that "Best" here is debatable.  Maybe I should have thrown in a "in my opinion" for good measure.  For me personally, I'd rather see the true path to the Django directory than however it might be symlinked.  I can see arguments other ways.  Listing them as good, better, and best was a last minute change that I probably shouldn't have done.  I think I'll update it to remove that and other biases and just point out the differences.  Always good to have your feedback.&lt;/p&gt;&lt;p&gt;-Rob&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob Hudson</dc:creator><pubDate>Tue, 05 May 2009 16:13:41 -0000</pubDate></item><item><title>Re: Django and Relativity Updated</title><link>http://rob.cogit8.org/blog/2009/May/05/django-and-relativity-updated/#comment-9025202</link><description>&lt;p&gt;No, because you want the path of the file you're importing, which isn't necessarily in the current directory. The sort of thing Rob is talking about here goes in, e.g, a Django settings file, which can easily be somewhere other than the "current" directory from the perspective of the thing doing the importing.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Malcolm Tredinnick</dc:creator><pubDate>Tue, 05 May 2009 15:59:30 -0000</pubDate></item><item><title>Re: Django and Relativity Updated</title><link>http://rob.cogit8.org/blog/2009/May/05/django-and-relativity-updated/#comment-9025118</link><description>&lt;p&gt;You haven't really justified your preference for realpath() -- and since it's your blog, I guess you don't have to. I've seen this debate go around a bit in the past, though, and it's a two-sided sword that, if I'm an operations manager or system admin, I would prefer to avoid, usually. If symlinks are involved, they're there for a reason and reporting the correct name (the symlink name) in debugging output, etc, is important. Changing that, by removing the links from the name can lead to confusion.&lt;/p&gt;&lt;p&gt;On the flip side, removing the symlink from any reported paths does help demystify why "../" is referring to an entirely different location to what you were expecting at times. However, using ".." in files that are going to be symlinked into random locations is probably indicative of a larger problem in the code.&lt;/p&gt;&lt;p&gt;In short, I'm not convinced about your best option being best. I think your "good" is actually closer to "bad" for the primary reason that it doesn't give an absolute path.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Malcolm Tredinnick</dc:creator><pubDate>Tue, 05 May 2009 15:56:54 -0000</pubDate></item><item><title>Re: Django and Relativity Updated</title><link>http://rob.cogit8.org/blog/2009/May/05/django-and-relativity-updated/#comment-9024288</link><description>&lt;p&gt;option 3) can be typed shorter:&lt;br&gt;PROJECT_ROOT = os.path.realpath('.')&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">christian</dc:creator><pubDate>Tue, 05 May 2009 15:32:44 -0000</pubDate></item></channel></rss>