Skip to content

Instantly share code, notes, and snippets.

@jbalogh
Created April 8, 2011 03:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jbalogh/909205 to your computer and use it in GitHub Desktop.
Save jbalogh/909205 to your computer and use it in GitHub Desktop.
Install all the tools you need to get playdoh set up.
# pip is a tool for installing Python packages.
sudo easy_install pip
# Essential tools for any self-respecting Python programmer.
sudo pip install virtualenv virtualenvwrapper ipython
# This is where we keep Python environments.
mkdir ~/.virtualenvs
# Set up our shell for virtualenvwrapper.
cat >>~/.bashrc <<EOF
export WORKON_HOME=\$HOME/.virtualenvs
source `which virtualenvwrapper.sh`
EOF
# Pick up the new config.
source .bashrc
# Create a clean environment.
mkvirtualenv --no-site-packages tutorial
# Turn on the new environment.
workon tutorial
# Install some packages that require a C compiler.
pip install py-bcrypt jinja2
# Use one of these to get playdoh. git is the slowest option.
## git clone --recursive git://github.com/mozilla/playdoh.git tutorial
## wget -O- http://people.mozilla.com/~jbalogh/tutorial.tgz | tar xzf -
## curl http://people.mozilla.com/~jbalogh/tutorial.tgz | tar xzf -
cd tutorial/
# Set up our local settings.
cp settings_local.py-dist settings_local.py
# Change mysql to sqlite3 to simplify the tutorial.
vim settings_local.py
## perl -pi -e 's/mysql/sqlite3/'
./manage.py shell
./manage.py runserver
# Ubuntu junk
# sudo apt-get install python-setuptools git-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment