Django-CMS Website
-
Install pip and virtualenv in your machine:
sudo apt-get install python-pip python-dev build-essential sudo pip install --upgrade pip sudo pip install --upgrade virtualenv
-
Install the dependencies for PIL
sudo apt-get install python-imaging python-dev libjpeg8 libjpeg8-dev libfreetype6 libfreetype6-dev
-
Install virtualenvwrapper:
sudo pip install virtualenvwrapper mkdir -p ~/.venvs export WORKON_HOME=~/.venvs source /usr/local/bin/virtualenvwrapper.sh
-
Add the this at the end of your .basrhc:
export WORKON_HOME=~/.venvs source /usr/local/bin/virtualenvwrapper.sh
-
Create a virtualenv for the project:
mkvirtualenv commas --no-site-packages
-
You should be able to enable and disable it. The system prompt must change where you have it enable:
workon commas deactivate
-
Clone the project it in your desired location:
cd $HOME git clone https://github.com/robertour/commas
-
Enter in the new location and update the virtual environment previously created:
cd git/commas workon commas pip install -U -r requirements.txt
-
Create the database (tico-tico):
python manage.py syncdb --all python manage.py migrate --fake
-
Migrate the tables:
python manage.py migrate
python manage.py syncdb
python manage.py migrate