13 lines
327 B
Python
13 lines
327 B
Python
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'),
|
|
)
|