3

问题

当我运行时,python manage.py runserver我得到了错误ImportError: cannot import name AdminMediaHandler

前任。

(venv)agconti@agconti-Inspiron-5520:~/my_dev/github/stamped/stamped_project$ python manage.py runserver
ImportError: cannot import name AdminMediaHandler

这在我安装django-werkzeug-debugger-runserver后才开始发生。

我正在使用 virtualenv。这是我安装的:

Django==1.5.2
Werkzeug==0.9.3
argparse==1.2.1
django-extensions==1.1.1
django-werkzeug-debugger-runserver==0.1.2
six==1.3.0
wsgiref==0.1.2

我不确定是什么导致了冲突。有任何想法吗?

4

2 回答 2

2

Seems like django-werkzeug-debugger-runserver==0.1.2 is not compatible with Django1.5+, which I suspect you are using.

Try uninstalling it and remove it from requirements.txt. And use django-extensions instead, which you already have installed.

于 2013-08-20T23:29:19.377 回答
0

我有这样的问题。然后我忘了激活virtualenv。你激活了吗?

于 2013-08-20T23:26:44.240 回答