Skip to content
stevenla edited this page Jun 2, 2012 · 17 revisions

This tutorial assumes that you have Ubuntu Server 12.04 LTS installed and running.

Installations

Via apt-get

  • python-pip
  • python-mysqldb
  • mysql-server
  • coffeescript
  • git

sudo apt-get install python-pip ....

Via pip

  • Django==1.3
  • south
  • django-coffeescript
  • django-compressor
  • django-haystack
  • django-tastypie
  • legit
  • whoosh

sudo pip install Django==1.3 ....

Via npm

  • less

sudo npm install less ....

Set up the database

$ mysql -u root -p
Enter password:
mysql> create database sdzoo_paws;
mysql> grant all privileges on sdzoo_paws.* to paws@'localhost' identified by 'paws';
mysql> flush privileges;

Set up the search indexes

./manage.py rebuild_index

Clone the repository

$ git clone [email protected]:mvismonte/paws.git

Making a migration

$ ./manage.py schemamigration main --auto

Sync your database

$ cd paws
$ ./manage.py syncdb
$ ./manage.py migrate main

Run the server

$ ./manage.py runserver 0.0.0.0:8000