Skip to content

Instantly share code, notes, and snippets.

@fadur
Created January 31, 2011 21:01
Show Gist options
  • Save fadur/804803 to your computer and use it in GitHub Desktop.
Save fadur/804803 to your computer and use it in GitHub Desktop.
def setup():
"""docstring for setup"""
require('hosts', provided_by=[local])
require('path')
with cd(env.workspace):
run('virtualenv --no-site-packages %(projectname)s' % env)
sudo('easy_install pip', pty=True)
run('source %(activate_path)s; pip install django' % env)
with cd(env.path):
run('source %(activate_path)s; django-admin.py startproject %(projectname)s' % env)
run ('mkdir %(path)s/apache' % env )
run('mkdir %(apache_path)s/logs; touch %(apache_path)s/%(projectname)s.conf; touch %(apache_path)s/%(projectname)s.wsgi' % env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment