Skip to content

marcuspp/icms

Repository files navigation

Import Case Management System - Python/Django port on PostgreSQL database

image image


Requirements

Python 3.7+

PostgreSQL

Development requirements

Docker Compose 1.23.2+

Development installation

git clone https://github.com/uktrade/icms.git
cd icms
make debug

Go to url http://localhost:8080

Above script will start a PostgreSQL database and ICMS app in debug mode. In order to run with no debug and Gunicorn server for a production-like environment use:

make run

Make sure to rebuild the image if new dependencies are installed and added to requirements.txt

make build 

or build and run using:

make build debug 

or

make build run

Environment Variables

Environment variable Default Notes
ICMS_DEBUG False
ICMS_WEB_PORT 8080
DATABASE_URL postgres://postgres@db:5432/postgres Format postgres://username/password@host:port/database
ICMS_MIGRATE True Runs Django migrate before starting the app
ICMS_SECRET_KEY random Django secret key
ICMS_ALLOWED_HOSTS localhost Comma separated list of hosts

About

Import Case Management System - Python/Django port on PostgreSQL database

Resources

Stars

Watchers

Forks

Packages

No packages published