django - 为 aptana studio 3 配置 Django 1.5.1

标签 django installation aptana

我如何让 Django 在 aptana 中工作?我已经把我的脸弄糊涂了,已经尝试了我能找到的一切,但我仍然没有运气。我正在使用运行狮子的 Mac。

我已经安装了 django 并且在空闲状态下我可以导入 django 并调用 get_version() 并且它工作正常。
然后在 aptana 中,我认为我已经做对了一切。我已经为 python 解释器做了一个自动配置,然后在库中我添加了 django 目录。

\Library\Frameworks\Python.framework\Versions\2.7\lib\python2.7\site-packages\django



当我尝试创建一个新项目时,出现此错误:

To get started with Django in PyDev, the pre-requisite is that Django is installed in the Python / Jython / IronPython interpreter you want to use (so, "import django" must properly work – if you're certain that Django is there and PyDev wasn't able to find it during the install process, you must go to the interpreter configuration and reconfigure your interpreter so that PyDev can detect the change you did after adding Django).

It seems that the selected interpreter does not have Django available, so, please install Django, reconfigure the interpreter so that Django is recognized and then come back to this wizard.

An introduction on how to get started with Django in Pydev is available at: http://pydev.org/manual_adv_django.html.



我去了网站,但没有帮助。

我究竟做错了什么?

最佳答案

尝试仅添加 \Library\Frameworks\Python.framework\Versions\2.7\lib\python2.7\site-packages到图书馆。

推理是:site-packages包含额外安装的 packages这是包含 modules 的文件夹和其他 packages .您需要包含根,以便整个 django包是可访问的(以及任何其他包)。

关于django - 为 aptana studio 3 配置 Django 1.5.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16177435/

相关文章:

python - django 在 QuerySet 上使用 len() 时给出 TypeError

Django:在管理员中维护图像的很棒的插件是什么?

python - 没有名为 sql_server.pyodbc.base 的模块

android - 在更新时完全卸载并重新安装 Android 应用程序?

.net - 使用 WiX 检测 .NET Framework 4.5.1

python 2.7 windows silent installer (.msi) - 设置路径的命令行选项?

javascript - 从 Aptana 验证器中排除特定文件或文件夹

onclick - Aptana 显示警告 "input proprietary attribute onclick"

javascript - jQuery(document).ready() 内的 JSDoc 兼容性

Django + react : How to connect them for deployment?