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
permalinksto your list ofINSTALLED_APPSin settings.py:INSTALLED_APPS = [ ... 'permalinks', ... ]
-
Add the permalinks middleware to
settings.pyon the top of the list:MIDDLEWARE = [ 'permalinks.middleware.main.PermalinksMiddleware', ... ]
-
Run
manage.py migrateto create the required table for the permalinks model. -
Create your
permalinksobjects 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-permalinks-0.0.3.tar.gz.
File metadata
- Download URL: django-permalinks-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f44b3489ff3b32774a4dd5d7cba1037e6069d0f999467b87f8c667b17ff3497
|
|
| MD5 |
bbf4fd047889c270066509fb4dd1a0ce
|
|
| BLAKE2b-256 |
052b04cb85db052cf1cca67f4a23a71de103da8bd5e1f01ff61286efed4bec6e
|
File details
Details for the file django_permalinks-0.0.3-py3-none-any.whl.
File metadata
- Download URL: django_permalinks-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5572cb902a8240bfef9ec37ecf8e7cd02e7752f3ceb24c6e87d081f25b6057a4
|
|
| MD5 |
0697c9c32913b96bb6b1ef4a5d517e8c
|
|
| BLAKE2b-256 |
5b532a42537adc41e232352431015d3ba4a9916bc6d4c86eb40bb4e869aa62f4
|