/ Wagtail

Installing Wagtail Demo Site on Ubuntu > 15.x

Installation of the Wagtail demo as follows:

sudo apt-get install python-pip git python-dev python-setuptools
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev
sudo apt-get install liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
sudo apt-get install libpq-dev python-dev
sudo apt-get install postgresql postgresql-contrib
git clone https://github.com/torchbox/wagtaildemo.git
cd wagtaildemo
sudo pip install -r requirements.txt
vim wagtaildemo/settings/base.py # change DATABASES to 'django.db.backends.sqlite3'
#Don't forget to put the full path to the local sqlite database you plant to create!
./manage.py migrate
./manage.py load_initial_data
./manage.py createsuperuser
./manage.py runserver

virtualenv on Fish


For the default fish terminal

Edit vim ~/.config/fish/config.fish and add following lines:

eval (python -m virtualfish)

Edit ~/.config/fish/functions/fish_prompt.fish and add following lines"

if set -q VIRTUAL_ENV
    echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "

Create virtualenv

sudo pip install virtualenv virtualenvwrapper

Credit: https://gist.github.com/tomdyson/ed670f8a89a68a1a092a