Skip to content

Instantly share code, notes, and snippets.

View AndrewIngram's full-sized avatar
🦊
Being foxy

Andy Ingram AndrewIngram

🦊
Being foxy
View GitHub Profile
@AndrewIngram
AndrewIngram / Make Python Behave Good on OSX
Created June 24, 2011 14:32
How to get Python working properly on a Mac
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
anonymous
anonymous / bootstrap.sh
Created June 2, 2011 17:19
Django on Heroku with Celery and Sentry
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