Skip to main content

By default, Django sends emails for 500 errors. Simply directing these emails to go to FogBugz can be problematic: FogBugz will attempt to respond to the email, which will fail if you are sending messages from, e.g., do-not-respond@example.com. FogBugz then generates a case for the failed email.

The solution is to use FogBugz’ ScoutSubmit functionality, which is explicitly designed to handle this situation. ScoutSubmit not only won’t send the bogus response emails; it also allows you to customize which project, area, and assignee to use for the bugs, and allows automatically coalescing these bugs based on their descriptions.

Installation

Simply run python setup.py install, as you would for any other Python project.

Usage

First, you’ll need to set up some parameters for FogBugzMiddleware to work. These settings are:

FOGBUGZ_URL: URL of ScoutSubmit. For Windows-based FogBugz installs, including FogBugz On Demand, this will be http://path/to/fogbugz/scoutSubmit.asp. For Unix-based installs, this will be http://path/to/fogbugz/scoutSubmit.php. FOGBUGZ_USERNAME: User to assign the case to. FOGBUGZ_PROJECT: Project to assign the case to. FOGBUGZ_AREA: Project area to assign the case to. Next, add FogBugzMiddleware to MIDDLEWARE_CLASSES in settings.py:

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'fogcreek.fogbugz.FogBugzMiddleware',
)

That’s it.

Bugs

Report bugs and submit feature requests at https://bqb.fogbugz.com/default.asp?pg=pgPublicEdit.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FogBugzMiddleware-1.2.zip (2.3 kB view details)

Uploaded Source

File details

Details for the file FogBugzMiddleware-1.2.zip.

File metadata

  • Download URL: FogBugzMiddleware-1.2.zip
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FogBugzMiddleware-1.2.zip
Algorithm Hash digest
SHA256 5ad319b9ec10e1f2f1dd6b555290cc3271eea815e42dc5edc396b64025a1d9c6
MD5 8fcf263954bc20c081d218c516fc37b3
BLAKE2b-256 1355d24e3093b485a2e91190f3ffcb5237805c1e52123d01509ec896f4619790

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page