Code

Opened 2 years ago

Closed 2 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$'),

)

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 2 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

In [17160]:

Fixed #17309 -- Typo in the IGNORABLE_404_URLS example.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.