Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

open-contracting-archive/toucan

Repository files navigation

Spanish

OCDS Toucan

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.

Installation

Requirements

  1. Python 3.6+ or higher

Installation

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

Configuration

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.

Deployment

To start the development server run:

python manage.py runserver