Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (31 sloc) 1.558 kb
" django.vim - A bangin' interface for ViM and Django
" Maintainer: Colin Wood <cwood06@gmail.com>
" Version: 1.0.0rc
" License: Same as ViM. see http://www.gnu.org/licenses/vim-license.txt
if !has('python')
echoerr "This script wont work without Python. Please compile with it."
finish
endif
if !exists('g:django_projects')
" Where the projects are stored at. Will start from this
" root and search down for all someapp.settings files
let g:django_projects = expand('~/Projects')
else
let g:django_projects = expand(g:django_projects)
endif
if !isdirectory(g:django_projects)
echoerr "Could not access ".g:django_projects
finish
endif
if !exists('g:django_project_templates')
let g:django_project_templates = expand('~/.templates/projects')
endif
if !exists('g:django_app_templates')
let g:django_app_templates = expand('~/.templates/apps')
endif
command! -nargs=? -complete=customlist,django#completions#managmentcommands DjangoManage call django#commands#manage(<q-args>)
command! -nargs=1 -complete=customlist,django#completions#projectscomplete DjangoProjectActivate call django#project#activate(<q-args>)
command! -nargs=? -complete=customlist,django#completions#managmentcommands DjangoAdmin call django#commands#admin(<q-args>)
command! -nargs=? -complete=customlist,django#completions#pypath DjangoCreateApp call django#apps#create_app(<q-args>)
command! DjangoCollectStaticLink call django#commands#manage('collectstatic --noinput --link')
command! DjangoSyncDb call django#commands#manage('syncdb')
Jump to Line
Something went wrong with that request. Please try again.