from django.conf.urls import * from django.views.generic import ListView, DetailView from .models import Figment, Series urlpatterns = patterns('', url(r'^(?P[-\w]+)/$', DetailView.as_view( model=Figment, template_name="details/figments.html" )), url(r'^$', ListView.as_view( queryset=Figment.objects.filter(status__exact=1).order_by('-pub_date'), template_name="archives/figments.html", )), )