annotate weblinks/urls.py @ 1034:2f36abf65a62

Fix UnicodeEncodeError issue in custom search form.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Dec 2015 15:28:16 -0600
parents 5ba2508939f7
children
rev   line source
gremmie@1 1 """urls for the weblinks application"""
bgneal@1028 2 from django.conf.urls import url
gremmie@1 3
bgneal@1028 4 import weblinks.views as wv
bgneal@1028 5
bgneal@1028 6
bgneal@1028 7 urlpatterns = [
bgneal@1028 8 url(r'^$', wv.link_index, name='weblinks-main'),
bgneal@1028 9 url(r'^add/$', wv.add_link, name='weblinks-add_link'),
bgneal@1028 10 url(r'^add/thanks/$', wv.add_thanks, name='weblinks-add_thanks'),
bgneal@1028 11 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
bgneal@1028 12 wv.view_links,
gremmie@1 13 name='weblinks-view_links'),
bgneal@1028 14 url(r'^detail/(\d+)/$',
bgneal@1028 15 wv.link_detail,
bgneal@20 16 name='weblinks-link_detail'),
bgneal@1028 17 url(r'^new/$', wv.new_links, name='weblinks-new_links'),
bgneal@1028 18 url(r'^popular/$', wv.popular_links, name='weblinks-popular_links'),
bgneal@1028 19 url(r'^random/$', wv.random_link, name='weblinks-random_link'),
bgneal@1028 20 url(r'^report/(\d+)/$', wv.report_link, name='weblinks-report_link'),
bgneal@1028 21 url(r'^visit/(\d+)/$', wv.visit, name="weblinks-visit"),
bgneal@1028 22 ]