Capistrano::Configuration.instance(:must_exist).load do namespace :django do desc "Runs a command from manage.py" task :manage, :roles => :app do run "#{deploy_to}/#{application}/manage.py #{ENV['command']} --settings=#{settings} --pythonpath=#{deploy_to}" end end end