from django.conf.urls.defaults import * from django.conf import settings from models import Entry, MicroEntry urlpatterns = patterns('django.views.generic.list_detail', (r'^$', 'object_list', dict(queryset=Entry.objects.order_by('-date'), paginate_by=35, allow_empty=False)), (r'^entries/$', 'object_list', dict(queryset=Entry.objects.order_by('-date'), paginate_by=35, allow_empty=False)), (r'^entries/(?P[\d\w-]+)/$', 'object_detail', dict(queryset=Entry.objects.all(), slug_field='slug')), (r'^microentries/$', 'object_list', dict(queryset=MicroEntry.objects.order_by('-date'), paginate_by=35, allow_empty=False)), (r'^microentries/(?P\d+)/$', 'object_detail', dict(queryset=MicroEntry.objects.all())), )