Opened 10 years ago

Closed 10 years ago

#23096 closed Uncategorized (invalid)

python manage.py shell

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Python 2.7.3 (default, Jul 24 2012, 10:05:38)
Type "copyright", "credits" or "license" for more information.

IPython 0.12 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
/usr/lib/python2.7/site-packages/IPython/frontend/terminal/interactiveshell.py:286: DeprecationWarning: With-statements now directly support multiple context managers

with nested(self.builtin_trap, self.display_trap):

I got this error, and look for all answer on google, but it seems didn't work.
Someone said igonore it, someone said change the source code and someone said just use python.
How can I fix this bug?I'm a newcomer.

Change History (1)

comment:1 by Aymeric Augustin, 10 years ago

Resolution: invalid
Status: newclosed

If you read the file name where the deprecation warning happens, it's part of IPython: it's in .../site-packages/IPython/.... It means that it's a problem in IPython, not in Django. So we can't fix it here. You should report it to the IPython authors.

In the meantime, you can indeed:

  • ignore it
  • try updating IPython (depending on how you've installed it)
  • force Django to use the regular Python shell instead of IPython by passing the --plain option
Note: See TracTickets for help on using tickets.
Back to Top