Django/Eclipse Integration

為{幸葍}努か 提交于 2019-12-12 01:41:08

问题


I've downloaded django onto my system and tried importing it into eclipse. Eclipse keeps telling me after i direct it to the python interpreter that django is not there, which it most certainly is, felling this could be a quick fix, but thats how i've installed every other program.


回答1:


PyDev will statically resolve your interpreter's site-specific paths once you configure it. It means you'll have to reconfigure your interpreter every time your site's paths change, like installing a new package such as Django.

Here's what the Interpreter Configuration documentation says:

What if I add something new in my System PYTHONPATH after configuring [the interpreter]?

If you add something to your python installation, you need to either add it manually as a 'new folder' in the System PYTHONPATH (if it's still not under a folder in the PYTHONPATH) or (recommended) remove your interpreter and add it again, then, press apply.



来源:https://stackoverflow.com/questions/11597139/django-eclipse-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!