Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#1501 closed enhancement (wontfix)

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

Reported by: django@… 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)

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

Download all attachments as: .zip

Change History (2)

by django@…, 18 years ago

patch to embed IPython shell in development server

comment:1 by Adrian Holovaty, 18 years ago

Resolution: wontfix
Status: newclosed

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