summaryrefslogtreecommitdiff
path: root/app/links/detail_urls.py
blob: 9c76a7fbe699569af2eddaabe77de35250035086 (plain)
1
2
3
4
5
6
7
8
9
10
from django.conf.urls import *
from django.views.generic.base import RedirectView
from django.views.generic.detail import DetailView
from links.models import Link


urlpatterns = patterns('',
    (r'^$', RedirectView.as_view(url="/links/1/")),
    (r'^(?P<object_id>\d+)/$', DetailView.as_view(model=Link, template_name='details/link.html')),
)