legacy-dotfiles/projects/urls.py

14 lines
327 B
Python
Raw Normal View History

2011-10-17 01:34:04 +02:00
from django.conf.urls.defaults import *
from projects.models import Project, Language
project_info_dict = {
'queryset': Project.objects.all(),
}
urlpatterns = patterns('',
(r'^$',
'django.views.generic.list_detail.object_list',
project_info_dict),
(r'^(?P<object_id>[\w-]+)/$', 'projects.views.project'),
)