Closed Bug 550173 Opened 14 years ago Closed 14 years ago

[dashboard] Switch off DEBUG, create a good error page

Categories

(Mozilla Localizations :: Infrastructure, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: stas)

Details

Attachments

(1 file, 1 obsolete file)

We'll need a descent 500 handler, and switch off DEBUG. I think that's the leak we're seeing in the twistd daemon.
... and in the buildbot master, too.

The culprit are that with DEBUG on, we're keeping a log of all sql queries in django.db.connection.queries.
Priority: -- → P1
Let me try to cook something up here.
Assignee: nobody → stas
Attached patch Patch A. Add a 500.html template (obsolete) — Splinter Review
Pike, can you take a look and tell me if you like it?
Attachment #453173 - Flags: review?(l10n)
Django docs say that "If DEBUG is set to False  (in your settings module) and if you didn't create a 404.html  file, an Http500  is raised instead. So remember to create a 404.html."

I'll add 404.html to the patch tomorrow.
Status: NEW → ASSIGNED
I added a simple 404.html in this patch. Bug 574143 tracks making it better.
Attachment #453173 - Attachment is obsolete: true
Attachment #453492 - Flags: review?(l10n)
Attachment #453173 - Flags: review?(l10n)
Comment on attachment 453492 [details] [diff] [review]
Patch B. Add 404 too

r=me.
Attachment #453492 - Flags: review?(l10n) → review+
http://hg.mozilla.org/l10n/django-site/rev/85a5d42908dd

Pike, can you patch local_settings.py (add SERVER_EMAIL) on the vm?
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I've set things up to use dashboard@l10n.mozilla.org, though that doesn't receive replies.

Right now, the server doesn't send out mails, there's nothing listening to port 25 on localhost. I filed bug 574178 on how to set things up to send mails.
Landed a corresponding fix for l10n-master, http://hg.mozilla.org/users/axel_mozilla.com/l10n-master/rev/903818058c19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: