<?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: Django Scripting and the Crontab</title>
	<atom:link href="http://www.davidfischer.name/2010/02/django-scripting-and-the-crontab-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidfischer.name/2010/02/django-scripting-and-the-crontab-2/</link>
	<description>Some Things to Some People</description>
	<lastBuildDate>Thu, 02 Sep 2010 05:29:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: David</title>
		<link>http://www.davidfischer.name/2010/02/django-scripting-and-the-crontab-2/comment-page-1/#comment-215</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 02 Jun 2010 15:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidfischer.name/?p=400#comment-215</guid>
		<description>I discovered later that this had to do with my hosting provider rather than Django.</description>
		<content:encoded><![CDATA[<p>I discovered later that this had to do with my hosting provider rather than Django.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandx</title>
		<link>http://www.davidfischer.name/2010/02/django-scripting-and-the-crontab-2/comment-page-1/#comment-213</link>
		<dc:creator>Mandx</dc:creator>
		<pubDate>Tue, 01 Jun 2010 15:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidfischer.name/?p=400#comment-213</guid>
		<description>There is no need to change the current directory to where &quot;manage.py&quot; is in the crontab. Just give Python the full path to it, followong with the necesary parameters:


* * * * * python /home/path/to/project/manage.py mycommand
</description>
		<content:encoded><![CDATA[<p>There is no need to change the current directory to where &#8220;manage.py&#8221; is in the crontab. Just give Python the full path to it, followong with the necesary parameters:</p>
<p>* * * * * python /home/path/to/project/manage.py mycommand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.davidfischer.name/2010/02/django-scripting-and-the-crontab-2/comment-page-1/#comment-143</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 03 Mar 2010 00:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidfischer.name/?p=400#comment-143</guid>
		<description>If you override the &lt;span style=&quot;font-family:monospace&quot;&gt;__init__&lt;/span&gt; method of BaseCommand, you must still call the BaseCommand constructor. When Django attempts to output an error (raised by CommandError) to the screen, it attempts to style it. Errors will be printed in bold red text or something similar based on your terminal settings.

If you see an error like this:
&lt;span style=&quot;font-family:monospace&quot;&gt;AttributeError: &#039;Command&#039; object has no attribute &#039;style&#039;&lt;/span&gt;

You need the following in your Command constructor:
&lt;pre&gt;&lt;code class=&#039;python&#039;&gt;class Command(BaseCommand):
    def __init__(self):
        # Call the BaseCommand constructor
        super(Command, self).__init__()

        # ...

    def handle(self, *app_labels, **options):
        pass&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>If you override the <span style="font-family:monospace">__init__</span> method of BaseCommand, you must still call the BaseCommand constructor. When Django attempts to output an error (raised by CommandError) to the screen, it attempts to style it. Errors will be printed in bold red text or something similar based on your terminal settings.</p>
<p>If you see an error like this:<br />
<span style="font-family:monospace">AttributeError: &#8216;Command&#8217; object has no attribute &#8216;style&#8217;</span></p>
<p>You need the following in your Command constructor:</p>
<pre><code class='python'>class Command(BaseCommand):
    def __init__(self):
        # Call the BaseCommand constructor
        super(Command, self).__init__()

        # ...

    def handle(self, *app_labels, **options):
        pass</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>
