from django.conf.urls import * from django.views.generic import ListView from projects.models.base import Project urlpatterns = patterns('', (r'data/(?P\d+)/$', 'projects.views.data_json'), (r'gifs/(?P[-\w]+)/$', 'projects.views.gif_detail'), (r'(?P[-\w]+)/$', 'projects.views.detail'), (r'^$', ListView.as_view( queryset=Project.objects.filter(status__exact=1).order_by('-pub_date'), template_name="archives/projects.html", )), )