django-url-migration
A custom 404 handler that uses fixed or regex rules to redirect from old to new urls.
Fixed URL -> URL rules
Regex rules
Usage logging
Removal of unused url migrations
Configuration
Add custom 404 handler to your main urls.py:
` handler404 = 'url_migration.views.page_not_found' `
Add url_migration to your INSTALLED_APPS.
Run migrations (manage.py migrate)
Check your Django admin for the url_migration models:
Url mappings: fixed url -> url rules
Url regexp mappings: regex rules that will generate url mapping for every regex match.
The remove_expired_redirects management command may be used to remove expired url mappings - if the mapping isn’t used for given expiry time it will be removed (so you can see which old urls are still used).
Every mapping hit is being logged to LastUsageLog model.
You can also check url_migration_demo project in this repository.
Metadata
Release files for django-url-migration 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-url-migration-0.2.2.tar.gz | 7.0 kB | Without provenance | Details for django-url-migration-0.2.2.tar.gz |
Release files / django-url-migration-0.2.2.tar.gz
| Download URL | django-url-migration-0.2.2.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d29d40cbc262c52205be9c1fbd4d45ea0b45a90665e8dcf838e3a3b87923fe17
|
|
BLAKE2b-256 checksum How to use checksums |
b11772b85af8ea18587a8088a72c3c2f8670afc6c58b13eb48fa5334da6a8bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|
Security for django-url-migration 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.