djangoldp package for Energie Partagee
Project description
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangoldp_ep-1.0.0.tar.gz.
File metadata
- Download URL: djangoldp_ep-1.0.0.tar.gz
- Upload date:
- Size: 563.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52c19a43e8254576ecc6bc33b12e7a207083aff3bd1bc1baccf1ff7a1cccf78a
|
|
| MD5 |
e85524b939ac9bdfd01fb4930c0dd5f9
|
|
| BLAKE2b-256 |
3aad86239efb97c6a273029045d056844ffb7d195e9ae7a304901b74d11353bb
|
File details
Details for the file djangoldp_ep-1.0.0-py3-none-any.whl.
File metadata
- Download URL: djangoldp_ep-1.0.0-py3-none-any.whl
- Upload date:
- Size: 676.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be6b77c02e3d0ee3e08ebda91677f7e713d9f14708aa1bd87ad190cf9ba38816
|
|
| MD5 |
9611c19ac0ba763d41755fbcbdf4a7c2
|
|
| BLAKE2b-256 |
834d28cfad7881f7457f0e7cc1517ffa6542bff27def55683482d719b63ebe13
|