Skip to main content

Django WeChat Short URL

Project description

Django WeChat Short URL


pip install django-short-url


from django_short_url.views import get_surl

def xxx(request):
    surl = get_surl(lurl)

urlpatterns = [
    url(r'^s/', include('django_short_url.urls', namespace='django_short_url')),


urlpatterns = [
    url(r'^(?P<surl>\w+)', surl_views.short_url_redirect, name='short_url_redirect'),


# Redirect url when short url not exists

Project details

Download files

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

Files for django-short-url, version 1.1.4
Filename, size File type Python version Upload date Hashes
Filename, size django_short_url-1.1.4-py2.py3-none-any.whl (6.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-short-url-1.1.4.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page