Skip to content

Instantly share code, notes, and snippets.

@kmmbvnr
Created February 17, 2011 04:26
Show Gist options
  • Save kmmbvnr/830976 to your computer and use it in GitHub Desktop.
Save kmmbvnr/830976 to your computer and use it in GitHub Desktop.
Clean and simple ve setup
#!/usr/bin/env python
try:
from ve_setup import use_virtualenv
except ImportError:
import urllib
urllib.urlretrieve("http://tiny.cc/ve-setup", 've_setup.py')
from ve_setup import use_virtualenv
use_virtualenv(['--distribute', "python"], requirements="requirements.pip", activate=True)
# application code
from django.core.management import execute_manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment