sudo easy_install pip
pip install virutalenv
cd 'my_project_folder'
virtualenv venv
source venv/bin/activate
pip install -r /path/to/requirements.txt
npm install
- redis for queueing
brew install redis; brew services start redis
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin
pip install -r /path/to/requirements.txt
- Open psql from Postgres.app menu
CREATE DATABASE dbname;
- Copy local_settings.base to local_settings.py
- Replace database settings with your local database credentials and test database
python /path/to/manage.py migrate
python /path/to/manage.py runserver
celery -A makret worker -l info
for celery tasksgulp
in another terminal (to run css/js tasks)- Hit localhost:8000 in browser to access local environment
Try python /path/to/manage.py migrate
brew install elasticsearch
- to run with brew services:
brew services start elasticsearch
python ./manage.py rebuild_index
to recreate the index,
python ./manage.py update_index
to update
npm run test
to run API testsnpm run generate_fixtures
runs tests and outputs fixtures to./fixtures
npm run testserver
runs a testserver with the generated fixtures