Django模型数据操作时遇到的问题,用ipython打开manage.py shell报错,求大神帮忙解答。

这是ipython报的错,我第一次在这提问,有什么不妥,希望指出。

 [TerminalIPythonApp] Error in executing file in user namespace: manage.py
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
C:\Python27\lib\site-packages\IPython\core\shellapp.pyc in _exec_file(self, fname)
    291                         self.shell.safe_execfile(full_filename, self.shell.user_ns)
    292                     finally:
--> 293                         del self.shell.user_ns['__file__']
    294         finally:
    295             sys.argv = save_argv

KeyError: '__file__'
不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^