Django Link
Modeled link objects which include linking to objects, views and static urls.
Installation
Install or add django-link to your Python path.
Add link to your INSTALLED_APPS setting.
Add url(r'^link/', include("link.urls", namespace="link")) to your url patterns (only required if you intend on using the list/detail views)
Note: django-link relies on "django.contrib.contenttypes" framework so this will need to be included in your INSTALLED_APPS setting.
Usage
django-link provides a model to add links to your projects. It provides a get_absolute_url method on the model which provides the url to either of these url types:
Standard url string.
Link to an object provided by the contenttype framework.
Link to a pre-existing view with configurable view params.
To use include the link object in the context of your view and include the following code: {{ link.get_absolute_url }}
Or use the inclusion tag which has been provided: {% render_link slug %}
To exclude certain apps from the view name choice field add the namespace in your settings: LINK = {"excluded-viewname-choices": ["admin"]}
License
Please see the License requirements in the LICENSE file of this repository.
Changelog
2.0.0
Add missing migrations.
String representation for Python 3.
Django 2 compatibility.
0.1.1
Django 1.11 support.
0.1.0
Initial release.
Metadata
Release files for django-link 2.0.0
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-link-2.0.0.tar.gz | 23.6 kB | Without provenance | Details for django-link-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_link-2.0.0-py2.7.egg | Legacy Egg format | - | - | Details for django_link-2.0.0-py2.7.egg |
Total release size: 73.3 kB
Release files / django-link-2.0.0.tar.gz
| Download URL | django-link-2.0.0.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6b0b5e3f142bb3e82646efe7c7ea2a2b61cd322239aaea78ca6ab67e207e912
|
|
BLAKE2b-256 checksum How to use checksums |
0bf9bd49f28f217358eb4446b76a7c2235142188d85fe2584414d2f378af3cba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_link-2.0.0-py2.7.egg
| Download URL | django_link-2.0.0-py2.7.egg |
|---|---|
| Size | 49.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7b159a85d07e4fff12683bc64a00e31ce468778057266f7c5dee9b9eb102ff1c
|
|
BLAKE2b-256 checksum How to use checksums |
c957ad1915cac528879c68354c08673322ca132598211439210b89e7a9256c77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-link 2.0.0
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.