diff gpp/weblinks/urls.py @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children c0d0779b266f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/weblinks/urls.py	Mon Apr 06 02:43:12 2009 +0000
@@ -0,0 +1,20 @@
+"""urls for the weblinks application"""
+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('weblinks.views',
+   url(r'^$', 'link_index', name='weblinks-main'),
+   (r'^add/$', 'add_link'),
+   (r'^add/thanks/$', 'add_thanks'),
+   url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', 
+      'view_links',
+      name='weblinks-view_links'),
+   (r'^new/$', 'new_links'),
+   (r'^popular/$', 'popular_links'),
+   (r'^random/$', 'random_link'),
+   (r'^report/(\d+)/$', 'report_link'),
+   (r'^report/thanks/(\d+)$', 'report_thanks'),
+   url(r'^search/page/(?P<page>\d+)/$', 
+      'search_links',
+      name="weblinks-search"),
+   (r'^visit/(\d+)/$', 'visit'),
+)