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.
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:
--plain
option