Metadata-Version: 2.1
Name: django-ok-redirects
Version: 0.1.4
Summary: Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.
Home-page: https://github.com/LowerDeez/ok-redirects
Author: Oleg Kleschunov
Author-email: igorkleschunov@gmail.com
License: MIT
Description: ==================================
        django-ok-redirects |PyPI version|
        ==================================
        
        |Build Status| |Code Health| |Python Versions| |PyPI downloads| |license| |Project Status|
        
        Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.
        
        Installation
        ============
        
        Install with pip:
        
        .. code:: shell
        
            $ pip install django-ok-redirects
        
        Update INSTALLED_APPS:
        
        .. code:: python
        
            INSTALLED_APPS = [
                ...
                'redirects',
                ...
            ]
        
        Make migrations
        
        .. code:: shell
        
            $ python manage.py migrate
        
        
        Available settings
        ==================
        
        ``REDIRECTS_IGNORE_PATH_PREFIXES`` - Tuple of path prefixes to ignore.
        
        
        For example:
        
        .. code:: python
        
            REDIRECTS_IGNORE_PATH_PREFIXES = (
                '/api/v1/',
                '/uploads/',
                '/static/',
            )
        
        
        ``REDIRECTS_USE_PERMANENT_REDIRECT`` - Use `HttpResponsePermanentRedirect` class.
        
        
        
        Basic example to use:
        =====================
        
        Add the redirects middleware to the MIDDLEWARE configuration:
        -------------------------------------------------------------
        
        .. code:: python
        
            MIDDLEWARE = [
                ...
        
                'redirects.middleware.RedirectMiddleware'
            ]
        
        
        .. |PyPI version| image:: https://badge.fury.io/py/django-ok-redirects.svg
           :target: https://badge.fury.io/py/django-ok-redirects
        .. |Build Status| image:: https://travis-ci.org/LowerDeez/ok-redirects.svg?branch=master
           :target: https://travis-ci.org/LowerDeez/ok-redirects
           :alt: Build status
        .. |Code Health| image:: https://api.codacy.com/project/badge/Grade/e5078569e40d428283d17efa0ebf9d19
           :target: https://www.codacy.com/app/LowerDeez/ok-redirects
           :alt: Code health
        .. |Python Versions| image:: https://img.shields.io/pypi/pyversions/django-ok-redirects.svg
           :target: https://pypi.org/project/django-ok-redirects/
           :alt: Python versions
        .. |license| image:: https://img.shields.io/pypi/l/django-ok-redirects.svg
           :alt: Software license
           :target: https://github.com/LowerDeez/ok-redirects/blob/master/LICENSE
        .. |PyPI downloads| image:: https://img.shields.io/pypi/dm/django-ok-redirects.svg
           :alt: PyPI downloads
        .. |Project Status| image:: https://img.shields.io/pypi/status/django-ok-redirects.svg
           :target: https://pypi.org/project/django-ok-redirects/  
           :alt: Project Status
        
Keywords: python,redirects,redirects-models,django
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.1
Description-Content-Type: text/x-rst
