/joyceful

personal photography site

Primary LanguageJavaScript

To Setup Project:

Postgres

brew update
brew doctor
brew install postgresql

#install lunchy
gem install lunchy
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/postgresql/{version NO.}/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
#start postgres
lunchy start postgres
#stop
lunchy stop postgres

Postgres configuration

#superuser
createdb `whoami`
createuser joyceful
#go to postgres command line
psql 
CREATE DATABASE joycefuldb OWNER joyceful;
#add password to role
\password joyceful

Migrations

./manage.py syncdb
./manage.py schemamigration photography --initial
./manage.py migrate photography