Djangolib
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
Metadata
Release files for unicef-djangolib 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unicef-djangolib-0.7.tar.gz | 9.7 kB | Without provenance | Details for unicef-djangolib-0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unicef_djangolib-0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for unicef_djangolib-0.7-py2.py3-none-any.whl |
Total release size: 19.4 kB
Release files / unicef-djangolib-0.7.tar.gz
| Download URL | unicef-djangolib-0.7.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1434384c674095e6ea0ae72c3839f27feeeadb71f9796158f717d560623c75ad
|
|
BLAKE2b-256 checksum How to use checksums |
6bff4c7629a055c62d894a35bed78c38d9b12319fe3caf177fdf6c9586494d81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / unicef_djangolib-0.7-py2.py3-none-any.whl
| Download URL | unicef_djangolib-0.7-py2.py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
30b98ebef44fda9f243cbc648ecbf63f96d0c245997314a350869f1d4101f37b
|
|
BLAKE2b-256 checksum How to use checksums |
fe30d0a8239de72c40ab79de89f20c1d7e839adb19ca5df1c9a09b0d9844ab01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for unicef-djangolib 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.