Skip to main content

Django package that handles exporting of data

Project description

Installation

pip install unicef-djangolib

Setup

Add unicef_djangolib to INSTALLED_APPS in settings

INSTALLED_APPS = [
    ...
    'unicef_djangolib',
]

Configure the html elements for display:

NAME = os.environ.get('NAME', 'default_name')
VERSION = os.environ.get('VERSION', 'default_version')
BACKGROUND_COLOR = os.environ.get('HEADER_BG_COLOR', '#42515A')
HEADER_RIGHT_LOGO = os.environ.get('HEADER_RIGHT_LOGO', "/static/images/default_right.svg")
HEADER_LEFT_LOGO = os.environ.get('HEADER_LEFT_LOGO', "/static/images/default_left.svg")
FOOTER_LOGO = os.environ.get('FOOTER_LOGO', "/static/images/default_footer_logo.png")

Usage

TODO

Contributing

Environment Setup

To install the necessary libraries

$ make install

Coding Standards

See PEP 8 Style Guide for Python Code for complete details on the coding standards.

To run checks on the code to ensure code is in compliance

$ make lint

Testing

Testing is important and tests are located in tests/ directory and can be run with;

$ make test

Coverage report is viewable in build/coverage directory, and can be generated with;

Compatibility Matrix

https://travis-matrix-badges.herokuapp.com/repos/unicef/unicef-djangolib/branches/develop

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

unicef-djangolib-0.7.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

unicef_djangolib-0.7-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file unicef-djangolib-0.7.tar.gz.

File metadata

  • Download URL: unicef-djangolib-0.7.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for unicef-djangolib-0.7.tar.gz
Algorithm Hash digest
SHA256 1434384c674095e6ea0ae72c3839f27feeeadb71f9796158f717d560623c75ad
MD5 2770dc4255472bc1be53daa548d20ee0
BLAKE2b-256 6bff4c7629a055c62d894a35bed78c38d9b12319fe3caf177fdf6c9586494d81

See more details on using hashes here.

File details

Details for the file unicef_djangolib-0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for unicef_djangolib-0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30b98ebef44fda9f243cbc648ecbf63f96d0c245997314a350869f1d4101f37b
MD5 63e9edf6e2d86f0c90666e30bb10a0e4
BLAKE2b-256 fe30d0a8239de72c40ab79de89f20c1d7e839adb19ca5df1c9a09b0d9844ab01

See more details on using hashes here.

Supported by

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