prefab-cloud-django
This project provides custom template tags for using prefab-cloud-python in Django applications
Usage
- Add this project to your Django application's dependencies
- Add
prefab_cloud_djangoto the list ofINSTALLED_APPSin your app'ssettings.py - Configure your Prefab client in
settings.py
options = prefab.Options(
api_key="...",
...
log_boundary=BASE_DIR,
)
PREFAB = prefab.Client(options)
LOGGER = PREFAB.logger
-
In your templates, add
{% load prefab_tags %} -
Use these tags
{% prefab_get "name-of-config" %}
{% prefab_enabled "name-of-flag" %}
# with default
{% prefab_get "name-of-config" default="default" %}
# with context
{% prefab_get "name-of-config" context=context %}
Metadata
Release files for prefab-cloud-django 0.2.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 |
|---|---|---|---|---|
| prefab_cloud_django-0.2.0.tar.gz | 1.8 kB | Without provenance | Details for prefab_cloud_django-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prefab_cloud_django-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for prefab_cloud_django-0.2.0-py3-none-any.whl |
Total release size: 4.0 kB
Release files / prefab_cloud_django-0.2.0.tar.gz
| Download URL | prefab_cloud_django-0.2.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9c73fff13294399b8dd8851562493dfa075772c64a207661a24d3090f9f7e15
|
|
BLAKE2b-256 checksum How to use checksums |
0f4de975a07aa408362cefedde2ba96f37782e0bc0d841007591e91898776fd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.7 Darwin/22.5.0
|
Release files / prefab_cloud_django-0.2.0-py3-none-any.whl
| Download URL | prefab_cloud_django-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e299ad18782373a9e10a019707efc8db3f6c78870dcd1d8feb10cae2ef66bcf1
|
|
BLAKE2b-256 checksum How to use checksums |
02565295e6910677cebb17af70678252dd99bd37b2999b3fcef3e40351e05541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.7 Darwin/22.5.0
|
Security for prefab-cloud-django 0.2.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.