old_contents: from fabric.api import *
  from fabric.contrib.console import confirm
  
  env.hosts            = ['obshtestvo@tmp.obshtestvo.bg']
  env.project_root     = '/home/obshtestvo/obshtestvo.bg'
  env.repository_url   = 'https://github.com/obshtestvo/obshtestvo.bg.git'
  env.virtual_env_name = 'obshtestvobg' # leave blank if you don't use virtualenvwrapper
  
  def run_within_virtual_env(command):
      with cd(env.project_root):
          if env.virtual_env_name != '':
              command_prefix = 'workon %s && ' % env.virtual_env_name
          else:
              command_prefix = ''
  
          run(command_prefix + command)
  
  def run_manage(command):
      run_within_virtual_env('python manage.py %s' % command)
  
  def deploy_static_files():
      run_manage('collectstatic -v0 --noinput')
  
  def deploy_code():
      with settings(warn_only=True):
          if run('test -d %s' % env.project_root).failed:
              run('git clone %s %s' % (env.repository_url, env.project_root))
      with cd(env.project_root):
          run('git pull')
  
  def install_dependencies():
      run_within_virtual_env('pip install -r requirements.txt')
  
  def run_migrations():
      run_manage('syncdb')
      run_manage('migrate')
  
  def restart_app_server():
      with cd(env.project_root):
          run('touch app.wsgi')
  
  def deploy():
      deploy_code()
      install_dependencies()
      deploy_static_files()
      run_migrations()
      restart_app_server()
  
new_contents: from fabric.api import *
  
  env.hosts            = ['obshtestvo@tmp.obshtestvo.bg']
  env.project_root     = '/home/obshtestvo/obshtestvo.bg'
  env.repository_url   = 'https://github.com/obshtestvo/obshtestvo.bg.git'
  env.virtual_env_name = 'obshtestvobg' # leave blank if you don't use virtualenvwrapper
  
  def run_within_virtual_env(command):
      with cd(env.project_root):
          if env.virtual_env_name != '':
              command_prefix = 'workon %s && ' % env.virtual_env_name
          else:
              command_prefix = ''
  
          run(command_prefix + command)
  
  def run_manage(command):
      run_within_virtual_env('python manage.py %s' % command)
  
  def deploy_static_files():
      run_manage('collectstatic -v0 --noinput')
  
  def deploy_code():
      with settings(warn_only=True):
          if run('test -d %s' % env.project_root).failed:
              run('git clone %s %s' % (env.repository_url, env.project_root))
      with cd(env.project_root):
          run('git pull')
  
  def install_dependencies():
      run_within_virtual_env('pip install -r requirements.txt')
  
  def run_migrations():
      run_manage('syncdb')
      run_manage('migrate')
  
  def restart_app_server():
      with cd(env.project_root):
          run('touch app.wsgi')
  
  def deploy():
      deploy_code()
      install_dependencies()
      deploy_static_files()
      run_migrations()
      restart_app_server()
  
subject: Remove an unused import