djangocms-static-ace
This app provides the ace source code editor files under the static files urls for the django cms admin interface (plugin modals essentially).
It is only needed if the project does not have internet access, or, if it prefers third party resources not to be loaded over the internet.
This app is a conditional dependency of, potentially amongst others, djangocms-frontend and
djangocms-snippet.
Installation
The typical installation adds the [static-ace] optional argument to the app requiring the ace code editor, e.g.,
djangocms-frontend[static-ace]. If needed it can be installed explicitly by pip install djangocms-static-ace.
Finally, to make the static ace files available, djangocms_static_ace needs to be explicitly declared in the projects
INSTALLED_APPS setting (in the project's settings.py):
INSTALLED_APPS = [
...,
"djangocms_static_ace",
...,
]
Once made available, compliant apps will load the ace editor locally from static files.
Using the ace editor for your own plugins
To make your own plugin aware of djangocms-static-ace you will need to define a custom form for your
plugin and add a Media class
from django.conf import settings as django_settings
from django import forms
from ... import MyFormModel
class MyPluginForm(forms.ModelForm):
class Media:
js = (
"admin/vendor/ace/ace.js"
if "djangocms_static_ace" in django_settings.INSTALLED_APPS
else "https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.6/ace.js",
)
class Meta:
model = MyFormModel
exclude = ()
Finally, you need to point your plugin's form attribute to MyPluginForm.
class MyPlugin(CMSPluginBase):
...
form = MyPluginForm
...
Versions
Currently, django CMS uses ace 1.9.6
Metadata
Release files for djangocms-static-ace 1.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 |
|---|---|---|---|---|
| djangocms_static_ace-1.2.0.tar.gz | 2.4 MB | Without provenance | Details for djangocms_static_ace-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djangocms_static_ace-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for djangocms_static_ace-1.2.0-py3-none-any.whl |
Total release size: 5.2 MB
Release files / djangocms_static_ace-1.2.0.tar.gz
| Download URL | djangocms_static_ace-1.2.0.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b79e18aebb75803bd7cc63156979c3585ea7144799b6d81d7af52d6f7f04956
|
|
BLAKE2b-256 checksum How to use checksums |
b9821f23f510f66e463b5ce3bd1bb3a9561d2c830574de82346e0a3c63060b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / djangocms_static_ace-1.2.0-py3-none-any.whl
| Download URL | djangocms_static_ace-1.2.0-py3-none-any.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c97fbc0e585c5afc29eec917878ad18cb58cb4db54f4d0fde900d2c31439809
|
|
BLAKE2b-256 checksum How to use checksums |
244e86995923b87d5b4cb037f480c10ec4a15a37bfe6cfa52c8009ffb682bdd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for djangocms-static-ace 1.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.