About
Store an history of model url change
a manager to register model to survey
a middleware to intercept http404 and redirect to new url if exists.
Installation
To install the latest stable version:
pip install -e git+https://github.com/oxys-net/django-historylink.git#egg=django-historylink
You will need to include historylink in your INSTALLED_APPS:
INSTALLED_APPS = (
...
'historylink',
)
You will need to include historylink in your MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
...
'historylink.middleware.HistoryLink',
)
Usage
In your models
from historylink.manager import manager manager.register(model) manager.register([model1, model2]) manager.register([model1, model2], MyModelManager) # where MyModelManager inherit from manager.ModelManager
Django command
The command below add HistoryLink object for your existing datas
./manage.py historylink_sync
Metadata
Release files for historylink 0.0.1
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 |
|---|---|---|---|---|
| historylink-0.0.1.tar.gz | 2.9 kB | Without provenance | Details for historylink-0.0.1.tar.gz |
Release files / historylink-0.0.1.tar.gz
| Download URL | historylink-0.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f13db924994738f784338cfef8dfa759104c3d18de40e633c2a5fc27d1967c23
|
|
BLAKE2b-256 checksum How to use checksums |
618a967a77d52b6bbe093c962ba317e02f9ddde6f897ec68df061166e1ea0697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for historylink 0.0.1
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.