diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-01-10 13:44:26 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-01-10 13:44:26 +0000 |
commit | c5924fb42438bf9a1dd69414ad0b42594c429fea (patch) | |
tree | bcadba23aabec712f742dffbf36e6dde7a4b1767 /apps/links/urls.py | |
parent | 637d71d2c3a7c1c65a931e1eb094052a095cdf05 (diff) |
added links app (non public)
Diffstat (limited to 'apps/links/urls.py')
-rw-r--r-- | apps/links/urls.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/links/urls.py b/apps/links/urls.py new file mode 100644 index 0000000..5a16d6e --- /dev/null +++ b/apps/links/urls.py @@ -0,0 +1,15 @@ +from django.conf.urls.defaults import * +from django.views.generic import list_detail +from django.views.generic.simple import redirect_to +from links.models import Link + +photos_paged = { + 'queryset': Link.objects.filter(status__exact=1).order_by('-pub_date'), + 'paginate': True, + 'page_url': '/links/%d/', +} + +urlpatterns = patterns('', + (r'^(?P<page>\d+)/$', list_detail.object_list, dict(photos_paged, template_name='archives/links.html')), + (r'^$', redirect_to, {'url': '/links/1/'}), +) |