OCDS Toucan is a web application to transform OCDS files using OCDS Kit, and to convert OCDS files to CSV or Excel using Flatten Tool.
- Python 3.6+ or higher
Clone the repository and change to the new directory:
git clone [email protected]:open-contracting/toucan.git
cd toucan
Create a virtual environment:
virtualenv -p python3 .ve
Activate the virtual environment:
source .ve/bin/activate
Install the requirements:
pip install -r requirements.txt
Set the following environment variables:
- OCDS_TOUCAN_MEDIA_ROOT: path of the directory where the uploaded files will be stored. By default is the
media
folder inside the project's directory. - OCDS_TOUCAN_LOCALE_PATH: lookup path for .PO files. By default is the
locale
folder inside the project's directory. - OCDS_TOUCAN_MAXNUMFILES: max number of files to upload per request. Default value is 20.
- OCDS_TOUCAN_MAXFILESIZE: max size of files to upload in bytes. Default value is 10MB.
To start the development server run:
python manage.py runserver