#1501 closed enhancement (wontfix)
[magic-removal][patch] embed IPython shell in development server
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This patch lets you drop into an IPython shell mid-request with the development server to play around in the local namespace. Handy for debugging and getting familiar with Django's request and response objects.
e.g.
from django.utils.shell import ipshell def some_view(request): response = render_to_response(...) ipshell() # suspend request here and drop into IPython shell return response
If a call to ipshell() is left in production code a warning will be sent to
stdout and processing will continue normally.
Attachments (1)
Change History (2)
by , 19 years ago
Attachment: | embedded_ipython_shell_r2521.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This is interesting functionality, but I'm not 100% sold on its usefulness. Marking as a wontfix for now.
Note:
See TracTickets
for help on using tickets.
patch to embed IPython shell in development server