DEEP is a humanitarian tool to collect and analyze secondary data from various publications such as websites and PDF reports.
Data collected by DEEP is currently publicly available. Read the documents for details on how to use it.
- Python >= 3.4
- Django >= 1.9
First setup a virtual environment.
$ sudo apt-get install python3.4-venv
$ virtualenv ~/deepenv
$ . ~/deepenv/bin/activate
Install missing packages.
$ apt-get install libjpeg-dev libmysqlclient-dev
Copy or clone the project to a directory and cd into it.
Next you can use setup.py
or pip
to install remaining dependancies:
$ python setup.py install
or
$ pip install -r requirements.txt
A MySQL database is required to use DEEP. Create one if it doesn't exist.
Create a file 'mysql.cnf' and enter the database details as follows:
[client]
database = DATABASE_NAME
host = localhost
user = USERNAME
password = PASSWORD
default-character-set = utf8
Migrate all database schema changes:
$ python manage.py migrate
Test run the web server:
$ python manage.py runserver
By default, the server should run at localhost:8000
. Test the website locally by browsing to this address.
The website is then ready to be deployed.
You can open the options page of the extension, to change server url and read usage guide.