Opened 4 years ago

Closed 4 years ago

#16214 closed Cleanup/optimization (fixed)

Simplify docs for 404 and 500 views

Reported by: aaugustin Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: zerok@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The current docs imply that from django.conf.urls.defaults import * is useful and recommended.

Actually it's not useful: Django will fallback to the default handler404 and handler500 even if they weren't imported in the root URLconf. And import * is generally not recommended.

Also, there some redundancy in this section and some missing information.

I tried to make these two paragraphs complete and consistent.

This cleanup also fixes #16079.

Attachments (1)

clean-up-error-views-docs.patch (4.5 KB) - added by aaugustin 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by aaugustin

comment:1 Changed 4 years ago by Horst Gutmann <zerok@…>

  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by Horst Gutmann <zerok@…>

  • Cc zerok@… added

comment:3 Changed 4 years ago by melinath

  • Triage Stage changed from Accepted to Ready for checkin

Looks a lot clearer.

comment:4 Changed 4 years ago by ramiro

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

In [16449]:

Fixed #16214 -- Enhanced documentation about HTTP 404 and 500 status views and templates. Thanks Aymeric Augustin for the report and patch.

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