Created
November 12, 2010 15:33
-
-
Save zmsmith/674223 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd <project_name>-env | |
| . bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virtualenv <project_name>-env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.http import HttpRepsonse | |
| def first_post(request): | |
| return HttpResponse('<h1>Hello World!</>') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install django | |
| django-admin.py startproject <project_name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| easy_install pip | |
| pip install virtualenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir ~/Development | |
| cd ~/Development |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment