Modeled link objects which include linking to objects, views and static urls.
Project description
Django Link
===========
**Modeled link objects which include linking to objects, views and static urls.**
.. image:: https://travis-ci.org/praekelt/django-link.svg?branch=develop
:target: https://travis-ci.org/praekelt/django-link
.. image:: https://coveralls.io/repos/github/praekelt/django-link/badge.svg?branch=develop
:target: https://coveralls.io/github/praekelt/django-link?branch=develop
.. contents:: Contents
:depth: 5
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.
Authors
=======
Praekelt Consulting
-------------------
* Jonathan Bydendyk
Changelog
=========
0.1.0
-----
#. Initial release.
===========
**Modeled link objects which include linking to objects, views and static urls.**
.. image:: https://travis-ci.org/praekelt/django-link.svg?branch=develop
:target: https://travis-ci.org/praekelt/django-link
.. image:: https://coveralls.io/repos/github/praekelt/django-link/badge.svg?branch=develop
:target: https://coveralls.io/github/praekelt/django-link?branch=develop
.. contents:: Contents
:depth: 5
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.
Authors
=======
Praekelt Consulting
-------------------
* Jonathan Bydendyk
Changelog
=========
0.1.0
-----
#. Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-link-0.1.0.tar.gz
(9.0 kB
view details)
Built Distributions
django_link-0.1.0-py2.7.egg
(29.7 kB
view details)
File details
Details for the file django-link-0.1.0.tar.gz
.
File metadata
- Download URL: django-link-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38e457e4533448469e2c24208034af2eaa577c8bdb8a41be4fe483ef60291ee6 |
|
MD5 | af683de033fef0afa88b7245f191ad6b |
|
BLAKE2b-256 | 39beb9de9e1f4e9f2e599deb49bc838c566d8b572596dcf7d67fb4d2b5170976 |
File details
Details for the file django_link-0.1.0-py2.7.egg
.
File metadata
- Download URL: django_link-0.1.0-py2.7.egg
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 187b319bb1d3765ea90761b3490b94719a3258a978b2863cefdc7232889bfa86 |
|
MD5 | 7c7f34941b78e49fe3deca56854aa9bc |
|
BLAKE2b-256 | 94f79280c0a823bfc1711a14b8a8bab49e1dffadcaa883b8a96790f0059bf92a |
File details
Details for the file django_link-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: django_link-0.1.0-py2-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 012f380a0394ca51ec5afa05d6ca3daf8846c64a05217a95951620895b350b7a |
|
MD5 | b9461854cb8fee218cbe8fe73854fb70 |
|
BLAKE2b-256 | 77485bad20153a2844f71e4630f24175cb7cc629ebc480ec7913c5cab40c479e |