Metadata-Version: 2.4
Name: djangocms-stories
Version: 0.2.0
Summary: The versatile stories and blog application for django CMS 4+
Project-URL: Documentation, https://djangocms-blog.readthedocs.io/
Project-URL: Homepage, https://github.com/nephila/djangocms-blog
Author-email: Iacopo Spalletti <i.spalletti@nephila.it>
License-Expression: BSD-3-Clause
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django CMS :: 4.1
Classifier: Framework :: Django CMS :: 5.0
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Requires-Dist: django-cms>=4.1
Requires-Dist: django-filer>=2
Requires-Dist: django-meta>=2
Requires-Dist: django-parler>=2
Requires-Dist: django-sortedm2m
Requires-Dist: django-taggit-autosuggest
Requires-Dist: django-taggit-templatetags
Requires-Dist: django-taggit>=1
Requires-Dist: easy-thumbnails>=2.4.1
Requires-Dist: lxml
Requires-Dist: pytz
Provides-Extra: docs
Requires-Dist: django<5; extra == 'docs'
Provides-Extra: taggit-helpers
Requires-Dist: django-taggit-helpers; extra == 'taggit-helpers'
Provides-Extra: test
Requires-Dist: coverage; extra == 'test'
Requires-Dist: coveralls>=2; extra == 'test'
Requires-Dist: django-taggit-helpers; extra == 'test'
Requires-Dist: djangocms-text; extra == 'test'
Requires-Dist: djangocms-video; extra == 'test'
Requires-Dist: pysolr; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Requires-Dist: pytest-django; extra == 'test'
Description-Content-Type: text/x-rst

=================
djangocms-stories
=================

|PyPiVersion| |TestCoverage| |PyVersion| |DjVersion| |CmsVersion|

**django CMS stories application - Tell your story in multilingual posts, using the full
power of django CMS placeholders.**

djangocms-stories provides a lean foundation for storytelling that can be composed with
other specialized django CMS applications, such as djangocms-versioning or djangocms-moderation.

********
Features
********

* Frontend editing using django CMS frontend editor
* Placeholder or optionally simpler TextField-based content editing
* Multilingual support using django-parler
* Multisite (posts can be visible in one or more Django sites on the same project)
* Hooks into your page tree anywhere
* Configurable permalinks, user navigation, template sets, ...
* Multiple instaces per site (e.g., blog, news, stories)
* Django sitemap framework
* django CMS Wizard integration
* Supports djangocms-versioning and djangocms-moderation

************
Installation
************

To install the latest version directly from GitHub, run:

.. code-block:: bash

    pip install git+https://github.com/fsbraun/djangocms-stories.git

Add ``djangocms_stories`` to your ``INSTALLED_APPS`` in your Django project's ``settings.py``:

.. code-block:: python

    INSTALLED_APPS = [
        # ...
        'djangocms_stories',
        'parler',  # if not already included
        'sortedm2m',  # if not already included

        # For now, but probably not needed in the future
        'taggit',
        'taggit_autosuggest',
        'meta',
        # ...
    ]

To use taggit's autosuggest feature, add their URLS in ``urls.py``:

.. code-block:: python

    url_patterns += [path('taggit_autosuggest/', include('taggit_autosuggest.urls'))]



*****************************
Migrating from djangocms-blog
*****************************

Migrate from djangocms-blog by following the steps below. There is test coverage for the migration
process - nevertheless be sure to backup your database before proceeding.

1. Uninstall djangocsms-blog: ``pip uninstall djangocms-blog``
2. Install djangocms-stories ``pip install git+https://github.com/fsbraun/djangocms-stories.git``
3. Add ``"djangocms_stories"`` to your installed apps. Do **not** remove djangocms-blog.
4. Run ``./manage.py migrate djangocms_stories``. This in migration 0002 will move existing content
   from djangocms-blog to djangocms-stories and delete djangocms-blogs database tables.
5. Remove ``"djangocms_blog"`` from your installed apps.

**Custom templates will need manual updating**, since the underlying model structure has changed:

* ``post`` contains the following fields: ``related``, ``main_image``, ``author``, ``date``, ``categories``, ``tags``
* ``post_content`` contiains the following per-language fields:
  ``title``, ``subtitle``, ``slug``, ``content``, ``media``, and ``post``, the reference
  to the ``Post`` object.

Some **improvements for developers** are included:

* You now can use the ``{% placeholder %}`` template tag in the post_detail.html template to render
  any placeholder. ``{% render_placeholder post_content.content %}`` and ``{% render_placeholder post_content.media %}``
  are still available, but you can now use ``{% placeholder "new_content" %}`` to, say, add additional placeholders.


************
Contributing
************

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>`_.

The project makes use of git pre-commit hooks to maintain code quality.
Please follow the installation steps to get `pre-commit <https://pre-commit.com/#installation>`_
setup in your development environment.

We're grateful to all contributors who have helped create and maintain
this package. Contributors are listed at the `contributors
<https://github.com/fsbraun/djangocms-stories/graphs/contributors>`_
section.

One of the easiest contributions you can make is helping to translate this addon on
`Transifex <https://www.transifex.com/divio/djangocms-stories/dashboard/>`_.

*******
Credits
*******

djangocms-stories is inspired by `Nephila's <https://github.com/nephila>`_ excellent
`djangocms-blog <https://github.com/nephila/djangocms-blog>`_, with the intent to bring
to align it with django CMS's new philosophy since version 4: "The design philosophy of
django CMS is to solve something complex with many simple things."

.. |PyPiVersion| image:: https://img.shields.io/pypi/v/djangocms-stories.svg?style=flat-square
    :target: https://pypi.python.org/pypi/djangocms-stories
    :alt: Latest PyPI version

.. |PyVersion| image:: https://img.shields.io/pypi/pyversions/djangocms-stories.svg?style=flat-square
    :target: https://pypi.python.org/pypi/djangocms-stories
    :alt: Python versions

.. |DjVersion| image:: https://img.shields.io/pypi/frameworkversions/django/djangocms-stories.svg?style=flat-square
    :target: https://pypi.python.org/pypi/djangocms-stories
    :alt: Django versions

.. |CmsVersion| image:: https://img.shields.io/pypi/frameworkversions/django-cms/djangocms-stories.svg?style=flat-square
    :target: https://pypi.python.org/pypi/djangocms-stories
    :alt: django CMS versions

.. |TestCoverage| image:: https://codecov.io/gh/fsbraun/djangocms-stories/graph/badge.svg?token=O64yNt6pgo
    :target: https://codecov.io/gh/fsbraun/djangocms-stories
    :alt: Test coverage

.. |License| image:: https://img.shields.io/github/license/fsbraun/djangocms-stories.svg?style=flat-square
   :target: https://pypi.python.org/pypi/djangocms-stories/
    :alt: License
