Note
I recommend using virtualenv, but nothing prevents you installing it into the root system
When installing this package, it will build the MySQL and Postgres clients. So you'll need the necessary headers, plus gcc on your machine.
For Ubuntu, run the following:
sudo apt-get install libmysqlclient-dev libpq-dev python-dev \
build-essential
- Download the latest package from http://www.github.com/exhuma/lost-tracker I recommend using the latest tagged version, but if you want bleeding edge, you may also download the "master" branch.
untar the package:
tar xzf exhuma-lost-tracker-<version number+hash>.tar.gz
enter the folder:
cd exhuma-lost-tracker-<version number+hash>
Note
If you don't have virtualenv, run the following:
sudo apt-get install python-setuptools && easy_install virtualenv
create a virtualenv:
virtualenv --no-site-packages /path/to/your/env
activate the environment:
source /path/to/your/env/bin/activate
run the installer:
python setup.py install
To initialise the database run the following commands:
# export MAMERWISELEN_LOST_TRACKER_PATH="/path/which/contains/app.ini"
# ./env/bin/alembic upgrade head
Note
The environment variable should point to the path containing app.ini
. Not the filename itself!
Configuration is handled using ini
style config files. An example file is given in app.ini.dist
.
The file is looked up using config_resolver.