Opened 13 years ago

Closed 13 years ago

#17309 closed Bug (fixed)

Missing quotes on ignorable 404 example.

Reported by: chad@… Owned by: nobody
Component: Documentation Version:
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The example on https://docs.djangoproject.com/en/dev/howto/error-reporting/ is missing the closing single quotes on the IGNORABLE_404_URLS example.

import re
IGNORABLE_404_URLS = (

re.compile(r'/apple-touch-icon.*\.png$'),
re.compile(r'
/favicon\.ico$),
re.compile(r'/robots\.txt$),

)

Should read

import re
IGNORABLE_404_URLS = (

re.compile(r'/apple-touch-icon.*\.png$'),
re.compile(r'
/favicon\.ico$'),
re.compile(r'/robots\.txt$'),

)

Change History (2)

comment:1 by Aymeric Augustin, 13 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Aymeric Augustin, 13 years ago

Resolution: fixed
Status: newclosed

In [17160]:

Fixed #17309 -- Typo in the IGNORABLE_404_URLS example.

Note: See TracTickets for help on using tickets.
Back to Top