Absolute Url is an app for creating absolute urls in Django templates.
Project description
=====
Django Absolute Url Template Tag
=====
Absolute Url is an app for creating absolute urls in Django templates. It works like built-in Django ``url`` template tag but with absolute urls.
Installation
-----------
Install using PIP
``pip install django-absoluteurl``
Add "absoluteurl" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
...
'absoluteurl',
)
Usage
-----------
First load it in Django template and use it as a tag.
{% load absoluteurl %}
This is simplest example:
{% absoluteurl 'name_for_your_url' %}
This is an absolute url for some object:
{% absoluteurl 'your_namespace:your_view' some_id=some_object.id %}
You can also use it with 'as' form:
{% absoluteurl 'your_namespace:your_view' some_id=some_object.id as abs_url %}
{{ abs_url }}
Credits
-------------
Created by Bartosz Gryszko, 2014
MIT License
Django Absolute Url Template Tag
=====
Absolute Url is an app for creating absolute urls in Django templates. It works like built-in Django ``url`` template tag but with absolute urls.
Installation
-----------
Install using PIP
``pip install django-absoluteurl``
Add "absoluteurl" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
...
'absoluteurl',
)
Usage
-----------
First load it in Django template and use it as a tag.
{% load absoluteurl %}
This is simplest example:
{% absoluteurl 'name_for_your_url' %}
This is an absolute url for some object:
{% absoluteurl 'your_namespace:your_view' some_id=some_object.id %}
You can also use it with 'as' form:
{% absoluteurl 'your_namespace:your_view' some_id=some_object.id as abs_url %}
{{ abs_url }}
Credits
-------------
Created by Bartosz Gryszko, 2014
MIT License
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
File details
Details for the file django-absoluteurl-1.0.tar.gz
.
File metadata
- Download URL: django-absoluteurl-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
12fd45d63a69ab9e33288527d9908aab009e987391bac51bdafaa840ef43b23e
|
|
MD5 |
5a0c6b9210a6caba5c9b8b66f50df750
|
|
BLAKE2b-256 |
8d9944bbcd7b67d307aca9aebc6ba61df9daaa384f41a7176821a615c58e0789
|