{"id":13774693,"url":"https://github.com/django-cms/djangocms-style","last_synced_at":"2025-12-17T22:47:18.769Z","repository":{"id":5821037,"uuid":"7036338","full_name":"django-cms/djangocms-style","owner":"django-cms","description":"django CMS Style is a plugin for django CMS that allows you to create a HTML container containing classes, styles, ids and other attributes.","archived":false,"fork":false,"pushed_at":"2025-06-07T07:09:04.000Z","size":464,"stargazers_count":37,"open_issues_count":1,"forks_count":24,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-06-14T03:04:56.059Z","etag":null,"topics":["addon","cms","django","django-cms","python"],"latest_commit_sha":null,"homepage":"https://marketplace.django-cms.org/en/addons/browse/djangocms-style/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lisijie/goblog","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/django-cms.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-12-06T13:46:16.000Z","updated_at":"2025-06-02T21:04:54.000Z","dependencies_parsed_at":"2024-04-16T00:31:13.470Z","dependency_job_id":"0ee16531-5237-439d-b6b7-c6f7bc17585f","html_url":"https://github.com/django-cms/djangocms-style","commit_stats":{"total_commits":108,"total_committers":24,"mean_commits":4.5,"dds":0.6018518518518519,"last_synced_commit":"029016e26e5771893166767f6fe989c73e6249d8"},"previous_names":["divio/djangocms-style"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/django-cms/djangocms-style","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjangocms-style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjangocms-style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjangocms-style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjangocms-style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/django-cms","download_url":"https://codeload.github.com/django-cms/djangocms-style/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjangocms-style/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260716212,"owners_count":23051401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addon","cms","django","django-cms","python"],"created_at":"2024-08-03T17:01:29.396Z","updated_at":"2025-12-17T22:47:18.708Z","avatar_url":"https://github.com/django-cms.png","language":"Python","funding_links":[],"categories":["Add-ons"],"sub_categories":[],"readme":"================\ndjango CMS Style\n================\n\n|pypi| |build| |coverage|\n\n**django CMS Style** is a plugin for `django CMS \u003chttp://django-cms.org\u003e`_\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 \u003chttps://www.django-cms.org/en/about-us/\u003e`_). Join us on `Slack                 \u003chttps://www.django-cms.org/slack/\u003e`_ 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 \u003chttps://www.django-cms.org/en/contribute/\u003e`_ and\n`receive a reward \u003chttps://www.django-cms.org/en/bounty-program/\u003e`_ 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\u003chttp://docs.django-cms.org/en/latest/contributing/index.html\u003e`_.\n\nWe're grateful to all contributors who have helped create and maintain this package.\nContributors are listed at the `contributors \u003chttps://github.com/django-cms/djangocms-style/graphs/contributors\u003e`_\nsection.\n\nDocumentation\n=============\n\nSee ``REQUIREMENTS`` in the `setup.py \u003chttps://github.com/divio/djangocms-style/blob/master/setup.py\u003e`_\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-cms%2Fdjangocms-style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjango-cms%2Fdjangocms-style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-cms%2Fdjangocms-style/lists"}