django-content-blocks


Namedjango-content-blocks JSON
Version 1.5.4 PyPI version JSON
download
home_pagehttps://github.com/Quantra/django-content-blocks
SummaryHTML content blocks for Django.
upload_time2024-01-02 13:54:30
maintainer
docs_urlNone
authorVince Coleman
requires_python>=3.7
licenseMIT
keywords django django-content-blocks django content blocks django content django dynamic content django content manager django cms
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            |package version|
|license|
|pypi status|

|python versions supported|
|django versions supported|

|coverage|
|docs build|

|code style black|
|pypi downloads|
|github stars|

Django Content Blocks
=====================

Django Content Blocks is a reusable Django app that allows users to create and manage custom content blocks for their website. It aims to provide content management and page building features from within the admin site without being a full CMS app or reinventing the admin site.

The content block editor is a simple page builder that integrates seamlessly into the admin site, it provides an easy-to-use interface for creating content blocks.

.. figure:: https://github.com/Quantra/django-content-blocks/raw/master/docs/images/content_block_editor_dark.png
    :alt: The content block editor in the Django admin site.

    The content block editor in the Django admin site.

Content blocks can be related to any other object. This allows you to provide rich, dynamic, editable content for your existing models such as pages, products, projects or whatever models you have.

The templates used to render content blocks are made in the same way as any other template in your project, giving you access to the full power of your chosen template engine. You define the fields that are available to edit your content blocks in the content block editor. This means you can build a content block template once and reuse it over and over again.

Content blocks can contain any type of content, including text, images, videos, and more, and can be arranged in any order. Additionally, Django Content Blocks includes support for drafts and previews, allowing users to see how their changes will look before publishing them.

Installation instructions and detailed documentation can be found on `ReadTheDocs <https://django-content-blocks.readthedocs.io>`_.

Development Status & Roadmap
----------------------------

Django content blocks is already in use in a number of production websites however it is still considered to be in beta as active development continues.

Major development plans/ideas include:

* Content block editor HTML, CSS and JS rework.
    * This all needs updating to use modern HTML and CSS (flex, grid etc) and vanilla JS.
    * Currently using jQuery which isn't the end of the world as it comes with django.contrib.admin so not an extra dependency.
* Option for vertical layout for nested forms in the content block editor
    * Sometimes nested blocks can represent columns within a content block. It would be nice to give the option to have these shown side by side in the content block editor.
* django-content-blocks 2.0
    * This will be a major rewrite which will move the representation of content blocks out of the database and into a ``JSONField``. This will greatly improve performance as the whole representation of an object's content blocks can be returned at once and any subsequent queries required can be made in a prefetch fashion.
    * The ``ContentBlockField`` will become pluggable allowing developers to add/remove available fields from within their project.
* Django content blocks suite of apps providing additional functionality and basic apps powered by content blocks:
    * CMS
    * Blog
    * Contact forms

Dependencies (and Thank You)
----------------------------

* https://github.com/jrief/django-admin-sortable2
* https://github.com/tj-django/django-clone
* https://github.com/python-pillow/Pillow

Thank You
---------

* https://shystudios.co.uk - For the monies I need to eat
* https://opalstack.com/?lmref=A2GlhA - For great value hosting and superb support over the years (affiliate link)
* https://chat.openai.com/ - For documentation rewrites
* https://github.com/django-hijack/django-hijack - For conf.py LazySettings idea
* https://github.com/cookiecutter/cookiecutter-django - For many things including docker
* Dmitry Sobolev for so graciously transferring the django-content-blocks name on pypi
* Margo Yaguda for linguistic assistance in contacting Dmitry

Contributing
------------

Contributions, advice and guidance are welcome. Please make contact **before** writing any code!


.. shields.io badges

.. |package version| image:: https://img.shields.io/pypi/v/django-content-blocks
    :alt: PyPI Package Version
    :target: https://pypi.python.org/pypi/django-content-blocks/

.. |python versions supported| image:: https://img.shields.io/pypi/pyversions/django-content-blocks
    :alt: Python Versions Supported
    :target: https://pypi.python.org/pypi/django-content-blocks/

.. |django versions supported| image:: https://img.shields.io/pypi/frameworkversions/django/django-content-blocks
    :alt: Django Versions Supported
    :target: https://pypi.python.org/pypi/django-content-blocks/

.. |coverage| image:: https://img.shields.io/badge/dynamic/xml?color=success&label=coverage&query=round%28%2F%2Fcoverage%2F%40line-rate%20%2A%20100%29&suffix=%25&url=https%3A%2F%2Fraw.githubusercontent.com%2FQuantra%2Fdjango-content-blocks%2Fmaster%2Fcoverage.xml
    :alt: Test Coverage
    :target: https://github.com/Quantra/django-content-blocks/blob/master/coverage.xml

.. |code style black| image:: https://img.shields.io/badge/code%20style-black-black
    :alt: Code Style Black
    :target: https://github.com/psf/black

.. |license| image:: https://img.shields.io/github/license/Quantra/django-content-blocks
    :alt: MIT License
    :target: https://github.com/Quantra/django-content-blocks/blob/master/LICENSE

.. |docs build| image:: https://img.shields.io/readthedocs/django-content-blocks
    :alt: Read the Docs
    :target: https://django-content-blocks.readthedocs.io/

.. |github stars| image:: https://img.shields.io/github/stars/Quantra/django-content-blocks?style=social
    :alt: GitHub Repo Stars
    :target: https://github.com/Quantra/django-content-blocks/stargazers

.. |pypi downloads| image:: https://img.shields.io/pypi/dm/django-content-blocks
    :alt: PyPI Downloads
    :target: https://pypi.python.org/pypi/django-content-blocks/

.. |pypi status| image:: https://img.shields.io/pypi/status/django-content-blocks
    :alt: PyPI Status
    :target: https://pypi.python.org/pypi/django-content-blocks/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Quantra/django-content-blocks",
    "name": "django-content-blocks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "django,django-content-blocks,django content blocks,django content,django dynamic content,django content manager,django cms",
    "author": "Vince Coleman",
    "author_email": "vince@shystudios.co.uk",
    "download_url": "https://files.pythonhosted.org/packages/a6/e6/05c49256a6cbb0cdbc1d886cc1909c398caca6230095455ba04811e3f3bb/django-content-blocks-1.5.4.tar.gz",
    "platform": null,
    "description": "|package version|\n|license|\n|pypi status|\n\n|python versions supported|\n|django versions supported|\n\n|coverage|\n|docs build|\n\n|code style black|\n|pypi downloads|\n|github stars|\n\nDjango Content Blocks\n=====================\n\nDjango Content Blocks is a reusable Django app that allows users to create and manage custom content blocks for their website. It aims to provide content management and page building features from within the admin site without being a full CMS app or reinventing the admin site.\n\nThe content block editor is a simple page builder that integrates seamlessly into the admin site, it provides an easy-to-use interface for creating content blocks.\n\n.. figure:: https://github.com/Quantra/django-content-blocks/raw/master/docs/images/content_block_editor_dark.png\n    :alt: The content block editor in the Django admin site.\n\n    The content block editor in the Django admin site.\n\nContent blocks can be related to any other object. This allows you to provide rich, dynamic, editable content for your existing models such as pages, products, projects or whatever models you have.\n\nThe templates used to render content blocks are made in the same way as any other template in your project, giving you access to the full power of your chosen template engine. You define the fields that are available to edit your content blocks in the content block editor. This means you can build a content block template once and reuse it over and over again.\n\nContent blocks can contain any type of content, including text, images, videos, and more, and can be arranged in any order. Additionally, Django Content Blocks includes support for drafts and previews, allowing users to see how their changes will look before publishing them.\n\nInstallation instructions and detailed documentation can be found on `ReadTheDocs <https://django-content-blocks.readthedocs.io>`_.\n\nDevelopment Status & Roadmap\n----------------------------\n\nDjango content blocks is already in use in a number of production websites however it is still considered to be in beta as active development continues.\n\nMajor development plans/ideas include:\n\n* Content block editor HTML, CSS and JS rework.\n    * This all needs updating to use modern HTML and CSS (flex, grid etc) and vanilla JS.\n    * Currently using jQuery which isn't the end of the world as it comes with django.contrib.admin so not an extra dependency.\n* Option for vertical layout for nested forms in the content block editor\n    * Sometimes nested blocks can represent columns within a content block. It would be nice to give the option to have these shown side by side in the content block editor.\n* django-content-blocks 2.0\n    * This will be a major rewrite which will move the representation of content blocks out of the database and into a ``JSONField``. This will greatly improve performance as the whole representation of an object's content blocks can be returned at once and any subsequent queries required can be made in a prefetch fashion.\n    * The ``ContentBlockField`` will become pluggable allowing developers to add/remove available fields from within their project.\n* Django content blocks suite of apps providing additional functionality and basic apps powered by content blocks:\n    * CMS\n    * Blog\n    * Contact forms\n\nDependencies (and Thank You)\n----------------------------\n\n* https://github.com/jrief/django-admin-sortable2\n* https://github.com/tj-django/django-clone\n* https://github.com/python-pillow/Pillow\n\nThank You\n---------\n\n* https://shystudios.co.uk - For the monies I need to eat\n* https://opalstack.com/?lmref=A2GlhA - For great value hosting and superb support over the years (affiliate link)\n* https://chat.openai.com/ - For documentation rewrites\n* https://github.com/django-hijack/django-hijack - For conf.py LazySettings idea\n* https://github.com/cookiecutter/cookiecutter-django - For many things including docker\n* Dmitry Sobolev for so graciously transferring the django-content-blocks name on pypi\n* Margo Yaguda for linguistic assistance in contacting Dmitry\n\nContributing\n------------\n\nContributions, advice and guidance are welcome. Please make contact **before** writing any code!\n\n\n.. shields.io badges\n\n.. |package version| image:: https://img.shields.io/pypi/v/django-content-blocks\n    :alt: PyPI Package Version\n    :target: https://pypi.python.org/pypi/django-content-blocks/\n\n.. |python versions supported| image:: https://img.shields.io/pypi/pyversions/django-content-blocks\n    :alt: Python Versions Supported\n    :target: https://pypi.python.org/pypi/django-content-blocks/\n\n.. |django versions supported| image:: https://img.shields.io/pypi/frameworkversions/django/django-content-blocks\n    :alt: Django Versions Supported\n    :target: https://pypi.python.org/pypi/django-content-blocks/\n\n.. |coverage| image:: https://img.shields.io/badge/dynamic/xml?color=success&label=coverage&query=round%28%2F%2Fcoverage%2F%40line-rate%20%2A%20100%29&suffix=%25&url=https%3A%2F%2Fraw.githubusercontent.com%2FQuantra%2Fdjango-content-blocks%2Fmaster%2Fcoverage.xml\n    :alt: Test Coverage\n    :target: https://github.com/Quantra/django-content-blocks/blob/master/coverage.xml\n\n.. |code style black| image:: https://img.shields.io/badge/code%20style-black-black\n    :alt: Code Style Black\n    :target: https://github.com/psf/black\n\n.. |license| image:: https://img.shields.io/github/license/Quantra/django-content-blocks\n    :alt: MIT License\n    :target: https://github.com/Quantra/django-content-blocks/blob/master/LICENSE\n\n.. |docs build| image:: https://img.shields.io/readthedocs/django-content-blocks\n    :alt: Read the Docs\n    :target: https://django-content-blocks.readthedocs.io/\n\n.. |github stars| image:: https://img.shields.io/github/stars/Quantra/django-content-blocks?style=social\n    :alt: GitHub Repo Stars\n    :target: https://github.com/Quantra/django-content-blocks/stargazers\n\n.. |pypi downloads| image:: https://img.shields.io/pypi/dm/django-content-blocks\n    :alt: PyPI Downloads\n    :target: https://pypi.python.org/pypi/django-content-blocks/\n\n.. |pypi status| image:: https://img.shields.io/pypi/status/django-content-blocks\n    :alt: PyPI Status\n    :target: https://pypi.python.org/pypi/django-content-blocks/\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "HTML content blocks for Django.",
    "version": "1.5.4",
    "project_urls": {
        "Documentation": "https://django-content-blocks.readthedocs.io",
        "Homepage": "https://github.com/Quantra/django-content-blocks",
        "Source": "https://github.com/Quantra/django-content-blocks"
    },
    "split_keywords": [
        "django",
        "django-content-blocks",
        "django content blocks",
        "django content",
        "django dynamic content",
        "django content manager",
        "django cms"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "51fd84a4a7d0d388c3a048673b7763d7c410669d6023bd67e7c300dc9f3fa967",
                "md5": "07fa831fe06efe49110ce11edd8290fd",
                "sha256": "a789f9c70e0dac2d6f12b9b9a51b08b5b50ca14b098bd547feb7b980d1a7c394"
            },
            "downloads": -1,
            "filename": "django_content_blocks-1.5.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07fa831fe06efe49110ce11edd8290fd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 512086,
            "upload_time": "2024-01-02T13:54:27",
            "upload_time_iso_8601": "2024-01-02T13:54:27.252023Z",
            "url": "https://files.pythonhosted.org/packages/51/fd/84a4a7d0d388c3a048673b7763d7c410669d6023bd67e7c300dc9f3fa967/django_content_blocks-1.5.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6e605c49256a6cbb0cdbc1d886cc1909c398caca6230095455ba04811e3f3bb",
                "md5": "b31179f431ecd67b7567883f3a957b97",
                "sha256": "10db7174b38c53e42fc7f2c7a29a0fe56214452b661e2ef5afc9bed61d4ff33f"
            },
            "downloads": -1,
            "filename": "django-content-blocks-1.5.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b31179f431ecd67b7567883f3a957b97",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 492609,
            "upload_time": "2024-01-02T13:54:30",
            "upload_time_iso_8601": "2024-01-02T13:54:30.005133Z",
            "url": "https://files.pythonhosted.org/packages/a6/e6/05c49256a6cbb0cdbc1d886cc1909c398caca6230095455ba04811e3f3bb/django-content-blocks-1.5.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-02 13:54:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Quantra",
    "github_project": "django-content-blocks",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "django-content-blocks"
}
        
Elapsed time: 0.15802s