Opened 12 years ago
Closed 12 years ago
#19754 closed Cleanup/optimization (invalid)
Missing surrounding quotes
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | misprint |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
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.