Skip to main content

A Django App to make sure old URLs work with new URLs.

Project description

Django Permalinks

This Django App makes sures that all your old URLs work in case you have migrated your old Primary Key URL slugs, or for whatever reason your data for the views are inconsistent.

Installation

Install from PyPI:

pip install django-permalinks

Configurations

  1. Add permalinks to your list of INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        ...
        'permalinks',
        ...
    ]
    
  2. Add the permalinks middleware to settings.py on the top of the list:

    MIDDLEWARE = [
    'permalinks.middleware.main.PermalinksMiddleware',
    ...
    ]
    
  3. Run manage.py migrate to create the required table for the permalinks model.

  4. Create your permalinks objects in your Django admin interface.

  5. Test your OLD URLs and their responses by visiting them.

  6. Enjoy a smooth URL migration!

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

django-permalinks-0.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

django_permalinks-0.0.2-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

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