<?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"
	>
<channel>
	<title>Comments on: django + vim</title>
	<atom:link href="http://blog.fluther.com/blog/2008/10/17/django-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fluther.com/blog/2008/10/17/django-vim/</link>
	<description>Tapping and Collecting</description>
	<pubDate>Sun, 22 Nov 2009 02:57:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Nagy Viktor (V): Vim actually seems to be quite nice for Python/Django development</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-2450</link>
		<dc:creator>Nagy Viktor (V): Vim actually seems to be quite nice for Python/Django development</dc:creator>
		<pubDate>Mon, 14 Sep 2009 23:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-2450</guid>
		<description>[...] omnicomplete [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] omnicomplete [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagy Viktor (V): Vim actually seems to be quite nice for Python/Django development</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-2451</link>
		<dc:creator>Nagy Viktor (V): Vim actually seems to be quite nice for Python/Django development</dc:creator>
		<pubDate>Mon, 14 Sep 2009 23:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-2451</guid>
		<description>[...] omnicomplete [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] omnicomplete [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franck</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-2448</link>
		<dc:creator>Franck</dc:creator>
		<pubDate>Sat, 12 Sep 2009 22:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-2448</guid>
		<description>@ Don:

#/bin/bash
PROJECT=`python -c "import os; print os.path.basename(os.getcwd())"`
DJANGO_SETTINGS_MODULE=$PROJECT.settings mvim $@</description>
		<content:encoded><![CDATA[<p>@ Don:</p>
<p>#/bin/bash<br />
PROJECT=`python -c &#8220;import os; print os.path.basename(os.getcwd())&#8221;`<br />
DJANGO_SETTINGS_MODULE=$PROJECT.settings mvim $@</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-2365</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 10 Aug 2009 00:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-2365</guid>
		<description>Hi,
where do I type this line: 'DJANGO_SETTINGS_FILE=myapp.settings vim'?
and I'm guessing I have to type that for every project.. is there a way to automate it on Windows Vista?

thanks!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
where do I type this line: &#8216;DJANGO_SETTINGS_FILE=myapp.settings vim&#8217;?<br />
and I&#8217;m guessing I have to type that for every project.. is there a way to automate it on Windows Vista?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-1575</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Thu, 15 Jan 2009 18:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-1575</guid>
		<description>Thanks for this, not sure why I thought setting up Omnicompletion in vim was so hard.  On ubuntu, all I had to do was:

sudo apt-get install vim-python

and drop the 4 autocmd lines into ~/.vimrc

Typing DJANGO_SETTINGS_MODULE all the time can get a little tedious, so I also put together a tiny shell script to determine the project's settings module based on the current directory.  I happen to keep all my projects in a single directory ("django") so the following works great for me:

#!/bin/sh
PROJECT=`python -c "import os;print os.getcwd().partition('django')[2].split(os.sep)[1]"`
DJANGO_SETTINGS_MODULE=$PROJECT.settings vim $@

now I just type "djvim models.py" and I've got django-enabled omnicompletion in vim.  Hooray!</description>
		<content:encoded><![CDATA[<p>Thanks for this, not sure why I thought setting up Omnicompletion in vim was so hard.  On ubuntu, all I had to do was:</p>
<p>sudo apt-get install vim-python</p>
<p>and drop the 4 autocmd lines into ~/.vimrc</p>
<p>Typing DJANGO_SETTINGS_MODULE all the time can get a little tedious, so I also put together a tiny shell script to determine the project&#8217;s settings module based on the current directory.  I happen to keep all my projects in a single directory (&#8221;django&#8221;) so the following works great for me:</p>
<p>#!/bin/sh<br />
PROJECT=`python -c &#8220;import os;print os.getcwd().partition(&#8217;django&#8217;)[2].split(os.sep)[1]&#8221;`<br />
DJANGO_SETTINGS_MODULE=$PROJECT.settings vim $@</p>
<p>now I just type &#8220;djvim models.py&#8221; and I&#8217;ve got django-enabled omnicompletion in vim.  Hooray!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emidgeste</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-1556</link>
		<dc:creator>emidgeste</dc:creator>
		<pubDate>Sat, 20 Dec 2008 03:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-1556</guid>
		<description>Thanks the author!</description>
		<content:encoded><![CDATA[<p>Thanks the author!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-1434</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 23 Oct 2008 01:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-1434</guid>
		<description>@Arnar: I agree. I'm using MacVim as well. 

The problem is that MacVim points to python 2.3 (the default shipping with Panther) -- so if you're running 2.5 like we are, you have to compile it from source (still not too hard to do).

You can test which version of python your vim is using by running
:python import sys
:python print sys.version</description>
		<content:encoded><![CDATA[<p>@Arnar: I agree. I&#8217;m using MacVim as well. </p>
<p>The problem is that MacVim points to python 2.3 (the default shipping with Panther) &#8212; so if you&#8217;re running 2.5 like we are, you have to compile it from source (still not too hard to do).</p>
<p>You can test which version of python your vim is using by running<br />
:python import sys<br />
:python print sys.version</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-1433</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 23 Oct 2008 01:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-1433</guid>
		<description>@james: Are you using bash as your shell? It's all on one line (the command).</description>
		<content:encoded><![CDATA[<p>@james: Are you using bash as your shell? It&#8217;s all on one line (the command).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-1432</link>
		<dc:creator>james</dc:creator>
		<pubDate>Wed, 22 Oct 2008 23:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-1432</guid>
		<description>ok so vim is not seeing the DJANGO_SETTINGS_MODULE when I try this. Are you setting this in the shell before opening vim?
&#62;DJANGO_SETTINGS_MODULE=mysite.settings
&#62;vim 
or am I missing something ?
would be amazing to get this working correctly!</description>
		<content:encoded><![CDATA[<p>ok so vim is not seeing the DJANGO_SETTINGS_MODULE when I try this. Are you setting this in the shell before opening vim?<br />
&gt;DJANGO_SETTINGS_MODULE=mysite.settings<br />
&gt;vim<br />
or am I missing something ?<br />
would be amazing to get this working correctly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HearKat</title>
		<link>http://blog.fluther.com/blog/2008/10/17/django-vim/#comment-1425</link>
		<dc:creator>HearKat</dc:creator>
		<pubDate>Mon, 20 Oct 2008 17:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fluther.com/blog/?p=213#comment-1425</guid>
		<description>@Syz:  One of the best lines from one of the best movies ever!!  
  And it applies in this situation for me, too!</description>
		<content:encoded><![CDATA[<p>@Syz:  One of the best lines from one of the best movies ever!!<br />
  And it applies in this situation for me, too!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
