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;
Project Links
Continuous Integration - https://circleci.com/gh/unicef/unicef-djangolib/tree/develop
Source Code - https://github.com/unicef/unicef-djangolib
Links
Stable |
|||
Development |
|||
Source Code |
|||
Issue tracker |
Compatibility Matrix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file unicef-djangolib-0.6.tar.gz
.
File metadata
- Download URL: unicef-djangolib-0.6.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e24178784b3d286d0e01b9c99444c44554681555f7e5c539b1656ff6519867e |
|
MD5 | 63f9a7c18fb32543d20b25e7aaf0a281 |
|
BLAKE2b-256 | 0bbe19ae3f0bb065c75b54e1601854dd8cea62df4584dffcb2027f0e2b7c3d3a |
File details
Details for the file unicef_djangolib-0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: unicef_djangolib-0.6-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138ba8bd933d521216f0f6cd81fcc59246e0c14d0103e91924b4f7198f6e586f |
|
MD5 | bf5ce648949d8cfcc9294fe65354f653 |
|
BLAKE2b-256 | 3a43b4d258338bc304c23f58811c7f4f21edb5c0c32bbe8dd6e796708495f077 |