Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

adw0rd/django-goto-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-goto-url

image

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'

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages