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

py.test

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 manage.py test –tag=custom_ds –settings=tests.test_app.settings_custom_ds python manage.py 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 manage.py import_organizations “http://example.com/v1/organization/

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

python manage.py import_organizations “http://example.com/v1/organization/” -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.

Source Distribution

django-orghierarchy-0.1.20.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_orghierarchy-0.1.20-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file django-orghierarchy-0.1.20.tar.gz.

File metadata

  • Download URL: django-orghierarchy-0.1.20.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for django-orghierarchy-0.1.20.tar.gz
Algorithm Hash digest
SHA256 849390d024f149bdda2b1a0cbfc7864e01e347f219bf2c708d86a342cecd23a8
MD5 9d9d802db667a57b7c3c20f41df66a6f
BLAKE2b-256 41c8ec5d04b5c1fca158a754da1ea51ee3ee4631e04caab9df0f97e95ed83166

See more details on using hashes here.

File details

Details for the file django_orghierarchy-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: django_orghierarchy-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for django_orghierarchy-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb9142f7c9e42fae2f99f9ff69b1645dc393a7fad77e3bcab0f0f58dd327162
MD5 9daba3d2ca54e20b8a6d2634417277d0
BLAKE2b-256 af94bb0f1368db97165b7d9e7b3c19a5350472d62a4af33c79dec49a378712a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page