qrurls/urls.py
author Tero Marttila <terom@fixme.fi>
Sat, 07 Sep 2013 15:59:47 +0300
changeset 84 e5d8e17f307f
parent 81 3a2fdc820c41
permissions -rw-r--r--
do not pass urlitem object to template
from django.conf.urls import patterns, include, url
import qrurls.views

urlpatterns = patterns('',
    url(r'^$', qrurls.views.index, name='shorturls'),
    url(r'^(?P<shorturl>\w+)/?$', qrurls.views.shorturl, name='shorturl'),
    url(r'^(?P<shorturl>\d+)/?$', qrurls.views.shorturl, name='miniurl'),
    
    url(r'^(?P<shorturl>\w+)/(?P<item_id>\d+)$', qrurls.views.item, name='shorturl_item'),
)