Skip to main content

Copy the page to the trash before deleting it.

Project description

DjangoCMS Deleted Pages

This module is designed for the Django CMS content management system. Since CMS 4, the content of pages that users publish has been versioned. This makes it possible to revert changes that users have made. Unfortunately, this does not apply to deleted pages. Once a page is deleted, all content, including all its versions, is irretrievably gone. That is why there is this module that creates a copy of the page before deleting it and places it under the Trash page. This way, it is possible to restore a page that was deleted by mistake.

A page representing the trash can for deleted pages is created automatically when a page is deleted. The trash can page has a special slug, which has the default value deleted-pages. This slug can be redefined in settings in the constant DELETED_PAGES_SLUG. It is also possible to redefine the slug in Constance, if you have it installed. The name DELETED_PAGES_SLUG is also used there. By redefining the slug, it is possible to store deleted pages in a different page than the current one.

Pages list

Install

Install the package from pypi.org.

pip install djangocms-deleted-pages

Add into INSTALLED_APPS in your site settings.py:

INSTALLED_APPS = [
    ...
    "djangocms_deleted_pages",
]

Extra settings

This value can be defined in both settings and Constance. Constance always takes precedence.

  • DELETED_PAGES_SLUG - Slug for Trash bin page. Default is deleted-pages.

License

BSD-3-Clause

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms_deleted_pages-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_deleted_pages-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_deleted_pages-1.0.1.tar.gz.

File metadata

  • Download URL: djangocms_deleted_pages-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for djangocms_deleted_pages-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5ec3bb3a5fdf0689d9145b36c83bf3c7c3c48e1f64c225914d6f4bcc66766a63
MD5 b53970ad22bbd01f7f574ec00b9c911a
BLAKE2b-256 ead9dfbb4ffaad8e6851cdb5ac6a787dc878510a6b3a6607e8c4bb36ba14bc24

See more details on using hashes here.

File details

Details for the file djangocms_deleted_pages-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_deleted_pages-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c4c1f425326d184999a4375dea960cdb166afe5047d20f431a5de7313297080
MD5 cd45a2c60f228f862debe11c5b0f70f3
BLAKE2b-256 b1dfa305765c004d084d97c6c8204712cfe0308b3243be508f7da5f99f25fc19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page