djangocms-dag-jetcode
Django CMS DAG Jetcode is a plugin for Django CMS that allows you to add DAG System's Jetcodes on your site.
Requirements
- Python 3.8+
- Django 2.0+
- Django CMS 3.8.0+
Installation
- run
pip install djangocms-dag-jetcode - add
djangocms_dag_jetcodeto yourINSTALLED_APPS - include in your
urls.pypath( "djangocms-dag-jetcode/", include("djangocms_dag_jetcode.urls", namespace="djangocms-dag-jetcode"), ),
- run
python manage.py migrate djangocms_dag_jetcode - import DAG's scripts before the closing
</body>tag<script src="https://jetcode.dag-system.com/jetcodes/fr?customerID=<your customer id>" defer></script>
- add required
<div>for the basket<div class="basket-jetcode" data-basket-id="0" css-jetcode-href="https://absolute.path/to/custom.css"></div>
- add required
<div>for the popups<div class="rate-jetcode-def" css-jetcode-href="https://absolute.path/to/custom.css"></div> <div class="cart-jetcode-def" css-jetcode-href="https://absolute.path/to/custom.css"></div> <div class="checkout-jetcode-def" css-jetcode-href="https://absolute.path/to/custom.css"></div> <div class="payinresult-jetcode-def" css-jetcode-href="https://absolute.path/to/custom.css"></div> <div class="shippinginfo-jetcode-def" css-jetcode-href="https://absolute.path/to/custom.css"></div> <div class="productinfo-jetcode-def" css-jetcode-href="https://absolute.path/to/custom.css"></div>
You can override some files to customize the style:
static/djangocms_dag_jetcode/css/base.cssbase style for all Jetcodesstatic/djangocms_dag_jetcode/css/product.cssproduct Jetcodesstatic/djangocms_dag_jetcode/css/productselector.cssproduct selector Jetcodesstatic/djangocms_dag_jetcode/css/package.csspackage Jetcodesstatic/djangocms_dag_jetcode/css/container.csscontainer Jetcodesstatic/djangocms_dag_jetcode/img/calendar-icon.pngthe calendar icontemplates/djangocms_dag_jetcode/default.htmlthe template used to render the Jetcodes
Settings
Styles choices
DJANGOCMS_DAG_JETCODE_STYLE_CHOICES = [
("my-style", "My custom style"),
]
defaults to []
Each style defined in this setting must have a corresponding CSS file in {STATIC_ROOT}/djangocms_dag_jetcode/css/ (for example: my-style.css).
Cache timeout
Set the cache timeout for the get_css view.
DJANGOCMS_DAG_JETCODE_CACHE_TIMEOUT = 15 * 60
defaults to 15 * 60 (15 minutes)
When DEBUG=True, you can set this setting to 0 to disable the cache.
Reload Jetcode after CMS plugin edit
When you add or edit a plugin, the CMS does not reload the entire page. You should re-instantiate the Jetcodes to display them without a page refresh. Add this code to your pages:
if (window.hasOwnProperty('CMS') === true) {
CMS.$(window).on('cms-content-refresh', function () {
initJetcode()
})
}
Metadata
Release files for djangocms-dag-jetcode 1.3.1
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 |
|---|---|---|---|---|
| djangocms_dag_jetcode-1.3.1.tar.gz | 15.6 kB | Without provenance | Details for djangocms_dag_jetcode-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djangocms_dag_jetcode-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for djangocms_dag_jetcode-1.3.1-py3-none-any.whl |
Total release size: 35.0 kB
Release files / djangocms_dag_jetcode-1.3.1.tar.gz
| Download URL | djangocms_dag_jetcode-1.3.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b57d0d60770a2bad6c090e7320343f0549bd8fad2702984634b7e0217d95ccf7
|
|
BLAKE2b-256 checksum How to use checksums |
1471521dc51aae38610edb8a783b8cd35113bbb375ddd70e59fcba79ee4f2ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / djangocms_dag_jetcode-1.3.1-py3-none-any.whl
| Download URL | djangocms_dag_jetcode-1.3.1-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8242315b672509b9ecd5fd49eb664af1eaf7481631632566f4312504585b168
|
|
BLAKE2b-256 checksum How to use checksums |
fceaf915122f56c4c3ae11b598205afc6c9b590dda243e81a3077b790d00bc8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for djangocms-dag-jetcode 1.3.1
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.