@@ -0,0 +1,1143 @@
+# -*- encoding:utf8 -*-%0Afrom fabric.api import env, require%0Afrom denim import paths, system, utils%0A%0A%0Adef manage(cmd, args='', revision=None, noinput=True, use_sudo=True, user=None):%0A    %22%22%22%0A    Run a django manage.py command.%0A    %22%22%22%0A    with paths.cd_package(revision):%0A        utils.run_as('python manage.py %25(cmd)s %25(args)s' %25 %7B%0A            'cmd': cmd,%0A            'args': args + (' --noinput' if noinput else '')%0A        %7D, use_sudo, user)%0A%0A%0Adef collectstatic(revision=None, noinput=True, use_sudo=True, user=None):%0A    %22%22%22%0A    Collect static files.%0A    %22%22%22%0A    manage('collectstatic', revision, noinput, use_sudo, user)%0A%0A%0Adef syncdb(noinput=True, revision=None, use_sudo=True, user=None):%0A    %22%22%22%0A    Run a database sync%0A    %22%22%22%0A    manage('syncdb', revision, noinput, use_sudo, user)%0A%0A%0Adef link_settings(revision=None, use_sudo=True, user=None):%0A    %22%22%22%0A    Put correct settings in place.%0A    %22%22%22%0A    require('deploy_env')%0A    system.create_symlink(%0A        paths.package_path(revision, 'deployment/settings_%25(deploy_env)s.py' %25 env),%0A        paths.package_path(revision, 'local_settings.py'),%0A        use_sudo=use_sudo, user=user%0A    )%0A

Add django specific commands