I am want in to pass the user and a date, using the url. Like the polls urls (r'^(?P<poll_id>\d+)/$', 'intranet.timesheets.views.detail'),
I tried these, but I am missing a piece: urlpatterns = patterns('', (r'^timesheet/(?P<username>)/$', 'intranet.timesheets.views.times'), (r'^timesheet/(?P<username>\d{20})/$', 'intranet.timesheets.views.times'), (r'^timesheet/(?P<user>\d{20})/(?P<date>\d{10})/$', 'intranet.timesheets.views.times'), (r'^timesheet/(?P<user>\d{20})/$', 'intranet.timesheets.views.times'), (r'^(?P<poll_id>\d+)/$', 'intranet.timesheets.views.login'), ) Is a understand it, P tells django that this is python code. d is the number of chars, but how does it know what user or date mean? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---