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
| 1. Install Xcode 4 | |
| 2. Install homebrew. | |
| 3. brew install python --framework | |
| 4. brew install libjpeg (for PIL) | |
| 5. sudo unlink /System/Library/Frameworks/Python.framework/Versions/Current | |
| 6. sudo ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current /System/Library/Frameworks/Python.framework/Versions/Current | |
| 7. nano ~/.bash_profile | |
| 8. add: export PATH=/usr/local/share/python:/usr/local/bin:$PATH | |
| 9. source ~/.bash_profile (or you can load a new terminal window) | |
| 10. easy_install pip |
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 --no-site-packages . | |
| source bin/activate | |
| bin/pip install Django psycopg2 django-sentry | |
| bin/pip freeze > requirements.txt | |
| bin/django-admin.py startproject mysite | |
| cat >.gitignore <<EOF | |
| bin/ | |
| include/ | |
| lib/ | |
| EOF |
NewerOlder