Django

Code

Ticket #666 (closed: fixed)

Opened 3 years ago

Last modified 1 year ago

Admin should get 404 and 500 templates

Reported by: adrian Assigned to: adrian
Milestone: Component: Admin interface
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The admin currently doesn't come with 404 and 500 templates. We should add "admin/500" and "admin/404" templates to django/contrib/admin/templates, and change the admin to use those.

Attachments

Change History

02/27/06 17:02:42 changed by nwp

It seems that while admin does now (svn r2402) have 404 and 500 templates, views/defaults.py by default just uses plain "404" and "500". Thinking about it, that makes sense, as it shouldn't rely on admin being installed in any given project. So wouldn't it make more sense to provide overall default 404 and 500 templates?

02/27/06 17:28:50 changed by jacob

  • status changed from new to closed.
  • resolution set to fixed.

It's up to you to create 404/500 templates for your project -- we want to avoid enforcing a "Django look" for end-user sites. Marking closed.

07/16/07 00:33:54 changed by josh

hey there... I'm new to Django and now I'm running into needing 404 and 500 tempalates.

Here's the deal: it's annoying to track this down. I'm just trying to prototype something so now I need to poke around, find a common/generic template and set it up to use it.

Why make people do this? Because you're afraid of enforcing a "Django look"? Unless you provide a default template, do you know what your Django look will be? An ugly python stack trace.

This should be reopened. Reason given for dismissing bug is unacceptable.

07/16/07 00:50:54 changed by Brian Rosner <brosner@gmail.com>

It is very simple to create the 404 and 500 templates. Just create 404.html and/or 500.html in the root of your template directory. Then please have a look at http://www.djangoproject.com/documentation/url_dispatch/#handler404 to get more advanced with the handling of the views. The reason for closing this bug is completely acceptable, there is no reason to provide a default look and feel for any error pages.


Add/Change #666 (Admin should get 404 and 500 templates)




Change Properties
Action