django-goto-url 0.3

Wraps external links in base64 and relocate on the special View, later redirect to source URL

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:

Settings:

Add to settings.py:

INSTALLED_APPS = (
    'goto_url',
)

Add to url.py:

urlpatterns = patterns('',
    url(r'', include('goto_url.urls')),
)

Usage:

  1. The templates can be used as follows:

    {% load goto_url %}
    {% goto_url comment.user_url %}
    {% goto_url "http://adw0rd.com/" %}
    
  2. Not in the templates can be used as follows:

    from goto_url.utils import goto_url
    
    goto_url('http://adw0rd.com/')
    >>> '/goto/aHR0cDovL2FkdzByZC5jb20v'
    
BSD

Author

Mikhail Andreev

Pip

django-goto-url==0.3

Classifiers

  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: Software Development :: Libraries :: Application Frameworks
  • Programming Language :: Python
  • License :: OSI Approved :: BSD License
  • Framework :: Django
  • Environment :: Web Environment
File Type Python Version Uploaded On Downloads
django-goto-url-0.3.tar.gz Source Nov. 28, 2012 1,664
Version Release Date
0.3 Nov. 28, 2012
0.2 Oct. 2, 2012
0.1 Oct. 2, 2012
Date Package Version Action
Nov. 4, 2014, 1:16 p.m. django-goto-url 0.2 Release Created
Nov. 4, 2014, 1:16 p.m. django-goto-url 0.3 Release Created
Nov. 4, 2014, 1:16 p.m. django-goto-url 0.1 Release Created
Nov. 4, 2014, 1:16 p.m. django-goto-url Package Created