blob: b629f3e932c0f310ca14f120b558572393a43111 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from django.conf.urls import *
from django.views.generic.base import RedirectView
from django.views.generic.detail import DetailView
from links.models import Link
detail_dict = {
'queryset': Link.objects.filter(status__exact=1),
}
urlpatterns = patterns('',
(r'^$', RedirectView.as_view(url="/links/1/")),
(r'^(?P<object_id>\d+)/$', DetailView.as_view(model=Link,template_name='details/link.html')),
)
|