Skip to content

Instantly share code, notes, and snippets.

@TimFletcher
Created April 30, 2012 00:02
Show Gist options
  • Save TimFletcher/2554196 to your computer and use it in GitHub Desktop.
Save TimFletcher/2554196 to your computer and use it in GitHub Desktop.
Vim Django Omnicomplete with Virtualenv
" Install https://github.com/jmcantrell/vim-virtualenv
" If the appropriate environment variables are set this will automatically use
" the virtualenv's python within vim thus enabling omnicomplete.
let g:virtualenv_auto_activate = 1
export PYTHONPATH=$HOME/Sites/foo
export PROJECT_HOME=$HOME/Sites/foo
export DJANGO_SETTINGS_MODULE=foo.settings
cd $HOME/Sites/foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment