https://github.com/nephila/djangocms-redirect
Application to handle redirects in Django, integrated with django CMS pages
https://github.com/nephila/djangocms-redirect
django django-cms hacktoberfest redirect redirection
Last synced: 6 months ago
JSON representation
Application to handle redirects in Django, integrated with django CMS pages
- Host: GitHub
- URL: https://github.com/nephila/djangocms-redirect
- Owner: nephila
- License: bsd-3-clause
- Created: 2016-03-14T10:39:55.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2025-04-08T06:28:57.000Z (6 months ago)
- Last Synced: 2025-04-09T23:16:18.304Z (6 months ago)
- Topics: django, django-cms, hacktoberfest, redirect, redirection
- Language: Python
- Homepage:
- Size: 232 KB
- Stars: 7
- Watchers: 7
- Forks: 22
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
=============================
djangocms-redirect
=============================|Gitter| |PyPiVersion| |PyVersion| |GAStatus| |TestCoverage| |CodeClimate| |License|
A django CMS enabled application to handle redirects
This is heavily borrowed from ``django.contrib.redirects`` with three major changes:
* Selection of django CMS pages
* Selection of redirect status code
* Middleware can processed in the request or response phase****************************
Why using process_request?
****************************Doing database queries in the middleware ``process_request`` is heavily discouraged as it's a
performance hit, especially when doing redirects which are just a tiny part of the
processed requests.
Except that sometimes it's just what you need (for example to "hide" content without deleting
/ unpublishing it)
By caching both existing and non existing redirects for a given URL the performance hit is
minimized for the use cases that requires ``process_request``.****************************
Documentation
****************************The full documentation is at https://djangocms-redirect.readthedocs.io.
****************************
Installation
****************************See https://djangocms-redirect.readthedocs.io/en/latest/installation.html
****************************
Features
***************************** Set old and new path, by selection existing django CMS pages or writing down the complete address
* Select the redirect status code (301, 302)
* Support for status code 410****************************
Credits
****************************Tools used in rendering this package:
* Cookiecutter_
* `cookiecutter-djangopackage-helper`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage-helper`: https://github.com/nephila/cookiecutter-djangopackage-helper.. |Gitter| image:: https://img.shields.io/badge/GITTER-join%20chat-brightgreen.svg?style=flat-square
:target: https://gitter.im/nephila/applications
:alt: Join the Gitter chat.. |PyPiVersion| image:: https://img.shields.io/pypi/v/djangocms-redirect.svg?style=flat-square
:target: https://pypi.python.org/pypi/djangocms-redirect
:alt: Latest PyPI version.. |PyVersion| image:: https://img.shields.io/pypi/pyversions/djangocms-redirect.svg?style=flat-square
:target: https://pypi.python.org/pypi/djangocms-redirect
:alt: Python versions.. |GAStatus| image:: https://github.com/nephila/djangocms-redirect/workflows/Tox%20tests/badge.svg
:target: https://github.com/nephila/djangocms-redirect
:alt: Latest CI build status.. |TestCoverage| image:: https://img.shields.io/coveralls/nephila/djangocms-redirect/master.svg?style=flat-square
:target: https://coveralls.io/r/nephila/djangocms-redirect?branch=master
:alt: Test coverage.. |License| image:: https://img.shields.io/github/license/nephila/djangocms-redirect.svg?style=flat-square
:target: https://pypi.python.org/pypi/djangocms-redirect/
:alt: License.. |CodeClimate| image:: https://codeclimate.com/github/nephila/djangocms-redirect/badges/gpa.svg?style=flat-square
:target: https://codeclimate.com/github/nephila/djangocms-redirect
:alt: Code Climate