Mes premières dents (les incisives) sur Django...
[progfou.git] / auf_zap / formations / urls.py
... / ...
CommitLineData
1from django.conf.urls.defaults import *
2from auf_zap.formations.models import Formation
3
4info_dict = {
5 'queryset': Formation.objects.all(),
6}
7
8urlpatterns = 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)