code: def deploy_project():
      
      
      project_root = '/'.join([deployment_root(),'env',env.project_fullname,'project'])
      local_dir = os.getcwd()
      
      if env.verbosity:
          print env.host,"DEPLOYING project", env.project_fullname
      #Exclude a few things that we don't want deployed as part of the project folder
      rsync_exclude = ['local_settings*','*.pyc','*.log','.*','/build','/dist','/media*','/static*','/www','/public','/template*']
  
      #make site local settings if they don't already exist
      _make_local_sitesettings()
      created = deploy_files(local_dir, project_root, rsync_exclude=rsync_exclude)
      if not env.patch:
          #hook the project into sys.path
          pyvers = run('python -V').split(' ')[1].split('.')[0:2] #Python x.x.x
          sitepackages = ''.join(['lib/python',pyvers[0],'.',pyvers[1],'/site-packages'])
          link_name = '/'.join([deployment_root(),'env',env.project_fullname,sitepackages,env.project_package_name])
          target = '/'.join([project_root,env.project_package_name])
          run(' '.join(['ln -s',target,link_name]))
          
          #make sure manage.py has exec permissions
          managepy = '/'.join([target,'sitesettings','manage.py'])
          if exists(managepy):
              sudo('chmod ugo+x %s'% managepy)
      
      return created
docs: Deploy to the project directory in the virtualenv