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
-
Add
permalinks
to your list ofINSTALLED_APPS
in settings.py:INSTALLED_APPS = [ ... 'permalinks', ... ]
-
Add the permalinks middleware to
settings.py
on the top of the list:MIDDLEWARE = [ 'permalinks.middleware.main.PermalinksMiddleware', ... ]
-
Run
manage.py migrate
to create the required table for the permalinks model. -
Create your
permalinks
objects in your Django admin interface. -
Test your OLD URLs and their responses by visiting them.
-
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
Built Distribution
Close
Hashes for django_permalinks-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5572cb902a8240bfef9ec37ecf8e7cd02e7752f3ceb24c6e87d081f25b6057a4 |
|
MD5 | 0697c9c32913b96bb6b1ef4a5d517e8c |
|
BLAKE2b-256 | 5b532a42537adc41e232352431015d3ba4a9916bc6d4c86eb40bb4e869aa62f4 |