Skip to main content

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

Project description

https://secure.travis-ci.org/adw0rd/django-goto-url.png

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'
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-goto-url-0.3.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Nov 28, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page