HTML snippet plugin for django CMS
Project description
djangocms-snippet
=================
A HTML snippet plugin for django CMS.
Installation
------------
This plugin requires `django CMS` 3.0 or higher to be properly installed.
* In your projects `virtualenv`_, run ``pip install djangocms-snippet``.
* Add ``'djangocms_snippet'`` to your ``INSTALLED_APPS`` setting.
* If using Django 1.7 add ``'djangocms_snippet': 'djangocms_snippet.migrations_django',``to ``MIGRATION_MODULES`` (or define ``MIGRATION_MODULES`` if it does not exists); when django CMS 3.1 will be released, migrations for Django 1.7 will be moved to the standard location and the south-style ones to ``south_migrations``.
* Run ``manage.py migrate djangocms_snippet``.
Warning
-------
This plugin should mainly be used during development to quickly test HTML snippets.
This plugin is a potential security hazard, since it allows admins to place
custom JavaScript on pages. This may allow administrators with the right to
add snippets to elevate their privileges to superusers. This plugin should
only be used during the initial development phase for rapid prototyping and
By default, the contents of a snippet are not searchable when using django-cms's builtin search feature.
To allow the contents of all snippets to be searchable, please set ``DJANGOCMS_SNIPPET_SEARCH`` to ``True`` in your settings.
Translations
------------
If you want to help translate the plugin please do it on transifex:
https://www.transifex.com/projects/p/django-cms/resource/djangocms-snippet/
=================
A HTML snippet plugin for django CMS.
Installation
------------
This plugin requires `django CMS` 3.0 or higher to be properly installed.
* In your projects `virtualenv`_, run ``pip install djangocms-snippet``.
* Add ``'djangocms_snippet'`` to your ``INSTALLED_APPS`` setting.
* If using Django 1.7 add ``'djangocms_snippet': 'djangocms_snippet.migrations_django',``to ``MIGRATION_MODULES`` (or define ``MIGRATION_MODULES`` if it does not exists); when django CMS 3.1 will be released, migrations for Django 1.7 will be moved to the standard location and the south-style ones to ``south_migrations``.
* Run ``manage.py migrate djangocms_snippet``.
Warning
-------
This plugin should mainly be used during development to quickly test HTML snippets.
This plugin is a potential security hazard, since it allows admins to place
custom JavaScript on pages. This may allow administrators with the right to
add snippets to elevate their privileges to superusers. This plugin should
only be used during the initial development phase for rapid prototyping and
By default, the contents of a snippet are not searchable when using django-cms's builtin search feature.
To allow the contents of all snippets to be searchable, please set ``DJANGOCMS_SNIPPET_SEARCH`` to ``True`` in your settings.
Translations
------------
If you want to help translate the plugin please do it on transifex:
https://www.transifex.com/projects/p/django-cms/resource/djangocms-snippet/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
djangocms-snippet-1.5.tar.gz
(22.8 kB
view details)
File details
Details for the file djangocms-snippet-1.5.tar.gz
.
File metadata
- Download URL: djangocms-snippet-1.5.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9040a18481ec53db8e8d66142332ecae8adb5bac4d93cbdcac6f4b90945d5e0 |
|
MD5 | 2ee1c55cba19fb1ce749c6ee20a28a7c |
|
BLAKE2b-256 | 12c16e92e8e0d10f8232797ee29b9ad6944b83a9c2ae1a4778779db2ce8fb056 |