Source

rvcms / README.md

Content Management System for Django

Temporary installation instructions

To install PIL into a virtualenv, some C code needs to be compiled, for that you will need these libraries:

sudo apt-get install python-dev libjpeg-dev libfreetype6-dev zlib1g-dev tk-dev liblcms1-dev libenchant-dev

64-Bit:

sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/liblcms.so /usr/lib

32-Bit:

sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/liblcms.so /usr/lib

Raspberry Pi (Raspbian Wheezy):

sudo ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabihf/libfreetype.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabihf/liblcms.so /usr/lib

Installing the CMS into a virtualenv

virtualenv rvcms-env
cd rvcms-env
source bin/activate
git clone git@bitbucket.org:robvdl/rvcms.git
cd rvcms
python setup.py install
python setup.py develop

Known Issues

When generating tag clouds, django-tagging can sometimes fail to generate a font size for one of the tags. This is known as issue 91 on Google Code for Django Tagging, and a patch exists called dtcw.patch, which despite having been created about 4 years ago, has still not been accepted into the main source, so you will have to patch it yourself.

For a virtualenv, this is a bit ugly, but here you go anyway. First, download dtcw.patch and place it in rvcms-env, go into rvcms-env and type:

source bin/activate
patch lib/python2.7/site-packages/django_tagging-0.3.1-py2.7.egg/tagging/utils.py dtcw.patch