Skip to main content

Reusable Django application for hierarchical organizations.

Project description

# django-orghierarchy

Reusable Django application for hierarchical organizations

## Development

### Tests

#### Unit tests

Run tests


Run tests with coverage report

py.test –cov-report html –cov .

Open htmlcov/index.html for the coverage report.

#### Integration tests

We need to provide different settings files for the test as the setting variables for swappable model are only evaluated the first time the module is imported.

Run tests

python test –tag=custom_ds –settings=tests.test_app.settings_custom_ds python test –tag=custom_pk_ds –settings=tests.test_app.settings_custom_pk_ds

## Import Organization Data

Import organization data from a REST API endpoint

python import_organizations “

If the data source needs to be renamed, provides a new data source name to replace the old one:

python import_organizations “” -s old_name:new_name

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-orghierarchy, version 0.1.23
Filename, size File type Python version Upload date Hashes
Filename, size django-orghierarchy-0.1.23.tar.gz (21.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page