DjangoLDP Energie Partagee
Custom Commands
With djangold-energiepartagee installed as an app, you will be able to run:
python manage.py create_annual_contributions
This command calculates the contribution for every actor in the database and creates a Contribution for each. The amount is calculated following an algorithm which can be found in the Actor model (Actor.get_next_contribution_amount). A contribution will not be added for any actors which have already paid a contribution in the same year. Use the -F option to override this, creating one contribution for every actor in the databae.
Enable the context preprocessors
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
...
'djangoldp_ep.context_processors.is_amorce',
],
},
},
]
Or, with SIB Platform:
apps:
hosts:
xxx:
services:
context:
processor: djangoldp_ep.context_processors.is_amorce
Disable AMORCE Specific routines
In your settings.yml:
server:
IS_AMORCE: False
TODO: Improve me.
Metadata
Release files for djangoldp-ep 1.0.0
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 |
|---|---|---|---|---|
| djangoldp_ep-1.0.0.tar.gz | 563.1 kB | Without provenance | Details for djangoldp_ep-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djangoldp_ep-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for djangoldp_ep-1.0.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / djangoldp_ep-1.0.0.tar.gz
| Download URL | djangoldp_ep-1.0.0.tar.gz |
|---|---|
| Size | 563.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52c19a43e8254576ecc6bc33b12e7a207083aff3bd1bc1baccf1ff7a1cccf78a
|
|
BLAKE2b-256 checksum How to use checksums |
3aad86239efb97c6a273029045d056844ffb7d195e9ae7a304901b74d11353bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.12.0 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.1 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.11
|
Release files / djangoldp_ep-1.0.0-py3-none-any.whl
| Download URL | djangoldp_ep-1.0.0-py3-none-any.whl |
|---|---|
| Size | 676.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be6b77c02e3d0ee3e08ebda91677f7e713d9f14708aa1bd87ad190cf9ba38816
|
|
BLAKE2b-256 checksum How to use checksums |
834d28cfad7881f7457f0e7cc1517ffa6542bff27def55683482d719b63ebe13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.12.0 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.1 importlib-metadata/8.5.0 keyring/25.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.11
|
Security for djangoldp-ep 1.0.0
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.