django-automatic-links
django-automatic-links is a application, that allows you to adding keywords that will be automatically converted into links.
Requirements
Python 2.7+ or Python 3.2+
Django 1.8+
Installation
Use your favorite Python package manager to install the app from PyPI, e.g.
Example:
pip install django-automatic-links
Add automatic_links to INSTALLED_APPS:
Example:
INSTALLED_APPS = (
...
'automatic_links',
...
)
After run command manager.py migrate automatic_links.
Example usage
In templates
{% load automatic_link_tags %}
...
<p>{{ object.text|add_links|safe }}</p>
In code
from automatic_links.utils import render_links
text = render_links('text')
If you have many links and the process takes a long time, you need to concern yourself with cache.
Settings
LINK_DEFAULT_LIMIT (default: 0)
LINK_DEFAULT_EVERY (default: 1)
LINK_DEFAULT_TARGET (default: '_blank')
LINK_DEFAULT_NOFOLLOW (default: False)
LINK_DEFAULT_CSS_CLASS (default: None)
These values are only used in the model, you will still be able to customize for each link their values.
Metadata
Release files for django-automatic-links 0.2.7
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-automatic-links-0.2.7.tar.gz | 7.3 kB | Without provenance | Details for django-automatic-links-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_automatic_links-0.2.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_automatic_links-0.2.7-py2.py3-none-any.whl |
Total release size: 16.5 kB
Release files / django-automatic-links-0.2.7.tar.gz
| Download URL | django-automatic-links-0.2.7.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e8a5fe8932b5813d963ee99f4042a702e27bc5131ef535dfe126b17c6656640
|
|
BLAKE2b-256 checksum How to use checksums |
91d9f66c04b7ca183de5380bacaa62f1631b7ef6d502ed680d3c60a6b8ddac70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Release files / django_automatic_links-0.2.7-py2.py3-none-any.whl
| Download URL | django_automatic_links-0.2.7-py2.py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9b09c8c7d97f31f61a56a6283a24ffa420077733584682b4ac073fef2bd85221
|
|
BLAKE2b-256 checksum How to use checksums |
df8b5133749cae7199254931dc160e49941593051f5f4d09aff296580650f6ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for django-automatic-links 0.2.7
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.