Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#1501 closed enhancement (wontfix)

[magic-removal][patch] embed IPython shell in development server

Reported by: django@… Owned by: adrian
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: UI/UX:


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.


from 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)

embedded_ipython_shell_r2521.diff (2.5 KB) - added by django@… 10 years ago.
patch to embed IPython shell in development server

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by django@…

patch to embed IPython shell in development server

comment:1 Changed 10 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to 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.
Back to Top