Skip to main content

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)

Source distribution for djangoldp-ep 1.0.0
File Size Uploaded
djangoldp_ep-1.0.0.tar.gz 563.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangoldp-ep 1.0.0
File Interpreter ABI Platform
djangoldp_ep-1.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page