Skip to main content

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.

preview djangocms-dag-jetcode

Requirements

  • Python 3.8+
  • Django 2.0+
  • Django CMS 3.8.0+

Installation

  • run pip install djangocms-dag-jetcode
  • add djangocms_dag_jetcode to your INSTALLED_APPS
  • 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>
    

You can override some files to customize the style:

  • static/djangocms_dag_jetcode/css/base.css base style for all Jetcodes
  • static/djangocms_dag_jetcode/css/product.css product Jetcodes
  • static/djangocms_dag_jetcode/css/productselector.css product selector Jetcodes
  • static/djangocms_dag_jetcode/css/package.css package Jetcodes
  • static/djangocms_dag_jetcode/img/calendar-icon.png the calendar icon
  • templates/djangocms_dag_jetcode/default.html the 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.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangocms-dag-jetcode 1.0.3
File Size Uploaded Provenance Actions
djangocms_dag_jetcode-1.0.3.tar.gz 15.9 kB Without provenance Details for djangocms_dag_jetcode-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-dag-jetcode 1.0.3
File Interpreter ABI Platform Actions
djangocms_dag_jetcode-1.0.3-py3-none-any.whl Python 3 none any Details for djangocms_dag_jetcode-1.0.3-py3-none-any.whl

Total release size: 34.1 kB

Release files / djangocms_dag_jetcode-1.0.3.tar.gz

Download URL djangocms_dag_jetcode-1.0.3.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a4a93f3d4b979457f6b0c9303d7376d4345b027a64c522fd637ef2c1d5569387
BLAKE2b-256 checksum
How to use checksums
63990df7bbd02ab7bdf612702dec095dd1f79c7c167d10c54cced1f191828d9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Linux/5.10.47-linuxkit

Release files / djangocms_dag_jetcode-1.0.3-py3-none-any.whl

Download URL djangocms_dag_jetcode-1.0.3-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df8e4a60b3bb3519ebc1ce1f2a59d9deb386b79cbdb409c734e1ec41354f7749
BLAKE2b-256 checksum
How to use checksums
d023b51e18dcac50dadd0650bf1e3e6ba16af6c01541efda0122404aee27abbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Linux/5.10.47-linuxkit

Security for djangocms-dag-jetcode 1.0.3

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.

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