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