当我点击django --> shell with django environment
给我:错误在Django交互shell上的PyDev日食
from django.core import management;
import test1.settings as settings;
management.setup_environ(settings)
错误是:
Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'setup_environ'
- 的Eclipse 4.3.1
- 的Python 2.6
- Django 1.6
任何人都可以帮忙吗?
你能提供一些你试图解决这个问题的信息吗? – Joe
另外,也许你可以看看这里:http://stackoverflow.com/questions/15048963/alternative-to-the-deprecated-setup-environ-for-one-off-django-scripts – Joe
壳工作管理。 py shell,但它没有代码完成。因为我是新手代码完成对我非常有帮助。 – miladpy