django-devserver icon indicating copy to clipboard operation
django-devserver copied to clipboard

Exception on auto-redirect

Open schinckel opened this issue 14 years ago • 1 comments

When a request comes in that is a redirect because a trailing slash has been omitted, devserver presents an error:

File "[…]/devserver/modules/profile.py", line 19, in process_complete
duration = datetime.now() - self.start
AttributeError: 'ProfileSummaryModule' object has no attribute 'start'

What seems to be happening is that process_request() in the DevServerMiddleware is not being called, and process_response() is being called. (Putting a pdb breakpoint in process_request() does not drop us into the debugger when running this request).

I haven't been able to figure out why this is.

schinckel avatar Dec 30 '10 06:12 schinckel

I have the same problem.

humitos avatar Feb 02 '12 22:02 humitos