def rsync_upload():
 excludes = [u'*.pyc', u'*.pyo', u'*.db', u'.DS_Store', u'.coverage', u'local_settings.py', u'/static', u'/.git', u'/.hg']
 local_dir = (os.getcwd() + os.sep)
 return rsync_project(remote_dir=env.proj_path, local_dir=local_dir, exclude=excludes)

def rsync_upload ( ) : excludes = [ u'*.pyc' , u'*.pyo' , u'*.db' , u'.DS_Store' , u'.coverage' , u'local_settings.py' , u'/static' , u'/.git' , u'/.hg' ] local_dir = ( os . getcwd ( ) + os . sep ) return rsync_project ( remote_dir = env . proj_path , local_dir = local_dir , exclude = excludes )
uploads the project with rsync excluding some files and folders .