Mes premières dents (les incisives) sur Django...
[progfou.git] / auf_zap / formations / urls.py
1 from django.conf.urls.defaults import *
2 from auf_zap.formations.models import Formation
3
4 info_dict = {
5 'queryset': Formation.objects.all(),
6 }
7
8 urlpatterns = patterns('',
9 (r'^$', 'django.views.generic.list_detail.object_list', info_dict),
10 (r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict),
11 )