Skip to content

Instantly share code, notes, and snippets.

@zmsmith
Created November 12, 2010 15:33
Show Gist options
  • Save zmsmith/674223 to your computer and use it in GitHub Desktop.
Save zmsmith/674223 to your computer and use it in GitHub Desktop.
cd <project_name>-env
. bin/activate
virtualenv <project_name>-env
# use the `python` option to specify python 2.6
virtualenv <project_name>-env --python=/System/Library/Frameworks/Python.framework/Versions/2.6/Python
#move the python script for virtualenv into 2.6 site-packages and call directly
cp /Library/Python/2.5/site-packages/virtualenv.py /Library/Python/2.6/site-packages/
python /Library/Python/2.6/site-packages/virtualenv.py <project_name>-env
from django.http import HttpRepsonse
def first_post(request):
return HttpResponse('<h1>Hello World!</>')
pip install django
django-admin.py startproject <project_name>
easy_install pip
pip install virtualenv
mkdir ~/Development
cd ~/Development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment