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

Release history Release notifications

This version
History Node


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_short_url-1.0.4-py2.py3-none-any.whl (6.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 May 1, 2018
django-short-url-1.0.4.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None May 1, 2018

Supported by

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