Wraps external links in base64 and relocate on the special View, later redirect to source URL
Project description
Wraps external links in base64 and relocate on the special View, later redirect to source URL
pip install django-goto-url
For more details see:
http://github.com/adw0rd/django-goto-url - the GitHub repository
http://pypi.python.org/pypi/django-goto-url - the PyPI page
Settings:
Add to settings.py:
INSTALLED_APPS = ( 'goto_url', )
Add to url.py:
urlpatterns = patterns('', url(r'', include('goto_url.urls')), )
Usage:
The templates can be used as follows:
{% load goto_url %} {% goto_url comment.user_url %} {% goto_url "http://adw0rd.com/" %}
Not in the templates can be used as follows:
from goto_url.utils import goto_url goto_url('http://adw0rd.com/') >>> '/goto/aHR0cDovL2FkdzByZC5jb20v'
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-goto-url-0.3.tar.gz
(2.6 kB
view details)
File details
Details for the file django-goto-url-0.3.tar.gz
.
File metadata
- Download URL: django-goto-url-0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ce9ee8b396be3c7972fc078bb1c8ab5dbf6e97f4402ed2fea60a4188fb181d |
|
MD5 | 8313aede5b520d9df370c9195eacf10b |
|
BLAKE2b-256 | a6f18d240eb2e64978aae031511f9f4d1d0a8de196ae949272fe136cd3b7f29f |