Replacement floodmaps website
apt-get install apt-utils postgresql python-setuptools python-virtualenv libapache2-mod-wsgi libpq-dev python-dev gcc postgis postgresql-8.4-postgis libproj0 libproj-dev gdal-bin libgdal1-dev libgeos-dev proj-bin
mkdir -p /opt/
git clone https://github.com/VincentHussey/floodmapsv2.git
cd /opt/floodmapsv2
virtualenv env
It may be necessary to reinitialise the database using UTF8 encoding (pg_dropcluster --stop 8.4 main). It may be necessary to modify pg_hba.conf
source env/bin/activate
pip install -r requirements.txt
(modify as necessary)
su postgres
cd /opt/floodmapsv2/utils
./create_database_debian.sh
Enter password for user flood twice
find / -name "proj"
It may be necessary to set the locale e.g
dpkg-reconfigure locales & choose en_US.UTF-8, en_GB.UTF-8, en_IE.UTF-8
LC_ALL=en_US.UTF-8;export LC_ALL
ref. https://code.djangoproject.com/ticket/16017
cd /opt/floodmapsv2/floodmapsv2/floodmapsv2/
../manage.py syncdb
../manage.py migrate floodmaps