django-devserver
django-devserver copied to clipboard
Exception on auto-redirect
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.
I have the same problem.