Mercurial > public > sg101
view weblinks/urls.py @ 1157:e4f2d6a4b401
Rework S3 connection logic for latest versions of Python 2.7.
Had to make these changes for Ubuntu 16.04. Seems backward compatible
with production.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 19 Jan 2017 18:35:53 -0600 |
parents | 5ba2508939f7 |
children |
line wrap: on
line source
"""urls for the weblinks application""" from django.conf.urls import url import weblinks.views as wv urlpatterns = [ url(r'^$', wv.link_index, name='weblinks-main'), url(r'^add/$', wv.add_link, name='weblinks-add_link'), url(r'^add/thanks/$', wv.add_thanks, name='weblinks-add_thanks'), url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$', wv.view_links, name='weblinks-view_links'), url(r'^detail/(\d+)/$', wv.link_detail, name='weblinks-link_detail'), url(r'^new/$', wv.new_links, name='weblinks-new_links'), url(r'^popular/$', wv.popular_links, name='weblinks-popular_links'), url(r'^random/$', wv.random_link, name='weblinks-random_link'), url(r'^report/(\d+)/$', wv.report_link, name='weblinks-report_link'), url(r'^visit/(\d+)/$', wv.visit, name="weblinks-visit"), ]