================
django CMS Style
================
|pypi| |build| |coverage|
**django CMS Style** is a plugin for `django CMS <http://django-cms.org>`_
that allows you to create a HTML container containing classes, styles, ids
and other attributes definable through the plugins settings.
.. note::
This project is considered 3rd party (no supervision by the `django CMS Association <https://www.django-cms.org/en/about-us/>`_). Join us on `Slack <https://www.django-cms.org/slack/>`_ for more information.
.. image:: preview.gif
*******************************************
Contribute to this project and win rewards
*******************************************
Because this is a an open-source project, we welcome everyone to
`get involved in the project <https://www.django-cms.org/en/contribute/>`_ and
`receive a reward <https://www.django-cms.org/en/bounty-program/>`_ for their contribution.
Become part of a fantastic community and help us make django CMS the best CMS in the world.
We'll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review our `contribution guidelines
<http://docs.django-cms.org/en/latest/contributing/index.html>`_.
We're grateful to all contributors who have helped create and maintain this package.
Contributors are listed at the `contributors <https://github.com/django-cms/djangocms-style/graphs/contributors>`_
section.
Documentation
=============
See ``REQUIREMENTS`` in the `setup.py <https://github.com/divio/djangocms-style/blob/master/setup.py>`_
file for additional dependencies:
|python| |django| |djangocms|
Installation
------------
For a manual install:
* run ``pip install djangocms-style``
* add ``djangocms_style`` to your ``INSTALLED_APPS``
* run ``python manage.py migrate djangocms_style``
Configuration
-------------
django CMS Style enables you to provide a list of predefined classes to be
displayed as first options, the default choices are: ::
DJANGOCMS_STYLE_CHOICES = ['container', 'content', 'teaser']
You are encouraged to modify that setting to your projects specifications.
This addon provides a ``default`` template for all instances. You can provide
additional template choices by adding a ``DJANGOCMS_STYLE_TEMPLATES``
setting::
DJANGOCMS_STYLE_TEMPLATES = [
('feature', _('Feature')),
]
You'll need to create the `feature` folder inside ``templates/djangocms_style/``
otherwise you will get a *template does not exist* error. You can do this by
copying the ``default`` folder inside that directory and renaming it to
``feature``.
The available tags can also be configured, the default choices are: ::
DJANGOCMS_STYLE_TAGS = ['div', 'article', 'section', 'header', 'footer',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
NOTICE::
All tags included in this list should be "paired tags" that require a
closing tag. It does not make sense to attempt to use 'img', 'input',
'meta', or other self-closing tags in this setting.
Also, the developer is advised to choose the tag-types wisely to avoid HTML
validation issues and/or unintentional security vulnerabilities. For
example, the 'script' tag should never be allowed in
``DJANGOCMS_STYLE_TAGS`` (though, we do not prevent this). If you have
an application where you find yourself wishing to do this, please see
djangocms-snippet as an alternative, but note these projects also come
with appropriate security warnings.
After that you can place any number of other plugins inside this style plugin.
It will create a div (or other tag-type) with a class that was prior selected
around the contained plugins.
Running Tests
-------------
You can run tests by executing::
virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test
.. |pypi| image:: https://badge.fury.io/py/djangocms-style.svg
:target: http://badge.fury.io/py/djangocms-style
.. |build| image:: https://travis-ci.org/divio/djangocms-style.svg?branch=master
:target: https://travis-ci.org/divio/djangocms-style
.. |coverage| image:: https://codecov.io/gh/divio/djangocms-style/branch/master/graph/badge.svg
:target: https://codecov.io/gh/divio/djangocms-style
.. |python| image:: https://img.shields.io/badge/python-3.5+-blue.svg
:target: https://pypi.org/project/djangocms-style/
.. |django| image:: https://img.shields.io/badge/django-2.2,%203.0,%203.1-blue.svg
:target: https://www.djangoproject.com/
.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.7%2B-blue.svg
:target: https://www.django-cms.org/
Raw data
{
"_id": null,
"home_page": "https://github.com/django-cms/djangocms-style",
"name": "djangocms-style",
"maintainer": "Django CMS Association and contributors",
"docs_url": null,
"requires_python": "",
"maintainer_email": "info@django-cms.org",
"keywords": "",
"author": "Divio AG",
"author_email": "info@divio.ch",
"download_url": "https://files.pythonhosted.org/packages/e3/5a/b446e087bd04c702a70ce674cf9dc481a0ede229f34b301e5844d8ea3690/djangocms-style-3.1.0.tar.gz",
"platform": null,
"description": "================\ndjango CMS Style\n================\n\n|pypi| |build| |coverage|\n\n**django CMS Style** is a plugin for `django CMS <http://django-cms.org>`_\nthat allows you to create a HTML container containing classes, styles, ids\nand other attributes definable through the plugins settings.\n\n\n.. note::\n\n This project is considered 3rd party (no supervision by the `django CMS Association <https://www.django-cms.org/en/about-us/>`_). Join us on `Slack <https://www.django-cms.org/slack/>`_ for more information.\n\n.. image:: preview.gif\n\n\n*******************************************\nContribute to this project and win rewards\n*******************************************\n\nBecause this is a an open-source project, we welcome everyone to\n`get involved in the project <https://www.django-cms.org/en/contribute/>`_ and\n`receive a reward <https://www.django-cms.org/en/bounty-program/>`_ for their contribution.\nBecome part of a fantastic community and help us make django CMS the best CMS in the world.\n\nWe'll be delighted to receive your\nfeedback in the form of issues and pull requests. Before submitting your\npull request, please review our `contribution guidelines\n<http://docs.django-cms.org/en/latest/contributing/index.html>`_.\n\nWe're grateful to all contributors who have helped create and maintain this package.\nContributors are listed at the `contributors <https://github.com/django-cms/djangocms-style/graphs/contributors>`_\nsection.\n\nDocumentation\n=============\n\nSee ``REQUIREMENTS`` in the `setup.py <https://github.com/divio/djangocms-style/blob/master/setup.py>`_\nfile for additional dependencies:\n\n|python| |django| |djangocms|\n\n\nInstallation\n------------\n\nFor a manual install:\n\n* run ``pip install djangocms-style``\n* add ``djangocms_style`` to your ``INSTALLED_APPS``\n* run ``python manage.py migrate djangocms_style``\n\n\nConfiguration\n-------------\n\ndjango CMS Style enables you to provide a list of predefined classes to be\ndisplayed as first options, the default choices are: ::\n\n DJANGOCMS_STYLE_CHOICES = ['container', 'content', 'teaser']\n\nYou are encouraged to modify that setting to your projects specifications.\n\nThis addon provides a ``default`` template for all instances. You can provide\nadditional template choices by adding a ``DJANGOCMS_STYLE_TEMPLATES``\nsetting::\n\n DJANGOCMS_STYLE_TEMPLATES = [\n ('feature', _('Feature')),\n ]\n\nYou'll need to create the `feature` folder inside ``templates/djangocms_style/``\notherwise you will get a *template does not exist* error. You can do this by\ncopying the ``default`` folder inside that directory and renaming it to\n``feature``.\n\nThe available tags can also be configured, the default choices are: ::\n\n DJANGOCMS_STYLE_TAGS = ['div', 'article', 'section', 'header', 'footer',\n 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']\n\nNOTICE::\n\n All tags included in this list should be \"paired tags\" that require a\n closing tag. It does not make sense to attempt to use 'img', 'input',\n 'meta', or other self-closing tags in this setting.\n\n Also, the developer is advised to choose the tag-types wisely to avoid HTML\n validation issues and/or unintentional security vulnerabilities. For\n example, the 'script' tag should never be allowed in\n ``DJANGOCMS_STYLE_TAGS`` (though, we do not prevent this). If you have\n an application where you find yourself wishing to do this, please see\n djangocms-snippet as an alternative, but note these projects also come\n with appropriate security warnings.\n\nAfter that you can place any number of other plugins inside this style plugin.\nIt will create a div (or other tag-type) with a class that was prior selected\naround the contained plugins.\n\n\nRunning Tests\n-------------\n\nYou can run tests by executing::\n\n virtualenv env\n source env/bin/activate\n pip install -r tests/requirements.txt\n python setup.py test\n\n\n.. |pypi| image:: https://badge.fury.io/py/djangocms-style.svg\n :target: http://badge.fury.io/py/djangocms-style\n.. |build| image:: https://travis-ci.org/divio/djangocms-style.svg?branch=master\n :target: https://travis-ci.org/divio/djangocms-style\n.. |coverage| image:: https://codecov.io/gh/divio/djangocms-style/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/divio/djangocms-style\n\n.. |python| image:: https://img.shields.io/badge/python-3.5+-blue.svg\n :target: https://pypi.org/project/djangocms-style/\n.. |django| image:: https://img.shields.io/badge/django-2.2,%203.0,%203.1-blue.svg\n :target: https://www.djangoproject.com/\n.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.7%2B-blue.svg\n :target: https://www.django-cms.org/\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Adds style plugin to django CMS",
"version": "3.1.0",
"project_urls": {
"Homepage": "https://github.com/django-cms/djangocms-style"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "73e99786b9c932911eb9ee51ac5fdf751db8bb4205e831378e87a0b093c924c6",
"md5": "788717e5ec33d1335e2c3bd4d5424eeb",
"sha256": "2572ec6eaee73124f588ed007ab563ab668e699f1767c27dc7215d0f9c5741e3"
},
"downloads": -1,
"filename": "djangocms_style-3.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "788717e5ec33d1335e2c3bd4d5424eeb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 127769,
"upload_time": "2023-12-06T22:09:09",
"upload_time_iso_8601": "2023-12-06T22:09:09.865816Z",
"url": "https://files.pythonhosted.org/packages/73/e9/9786b9c932911eb9ee51ac5fdf751db8bb4205e831378e87a0b093c924c6/djangocms_style-3.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e35ab446e087bd04c702a70ce674cf9dc481a0ede229f34b301e5844d8ea3690",
"md5": "97de36f16019214bf7bd58c38899587a",
"sha256": "2f28dfc299615b51b57cdc92ccdd3db1aba706d42d7038335b25f893fabfa1c5"
},
"downloads": -1,
"filename": "djangocms-style-3.1.0.tar.gz",
"has_sig": false,
"md5_digest": "97de36f16019214bf7bd58c38899587a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28842,
"upload_time": "2023-12-06T22:09:11",
"upload_time_iso_8601": "2023-12-06T22:09:11.356646Z",
"url": "https://files.pythonhosted.org/packages/e3/5a/b446e087bd04c702a70ce674cf9dc481a0ede229f34b301e5844d8ea3690/djangocms-style-3.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-06 22:09:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "django-cms",
"github_project": "djangocms-style",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "djangocms-style"
}