Opened 12 years ago
Closed 12 years ago
#19754 closed Cleanup/optimization (invalid)
Missing surrounding quotes
Description ¶
I think there are missing quotes on the third code block at https://docs.djangoproject.com/en/1.4/ref/models/instances/#django.db.models.permalink
(r'/archive/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', archive_view)
Should certainly be:
(r'/archive/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', 'archive_view')
Note:
See TracTickets
for help on using tickets.
It's legal (and possibly a good practice) to pass the view functions themselves in URLconfs.