不能得到django工作在eclipse +窗口 [英] can't get django to work in eclipse + windows

查看:86
本文介绍了不能得到django工作在eclipse +窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Windows机器上安装了django,为eclipse添加了pydev和django插件,创建了一个django项目,并运行 manage.py createapp 创建一个应用程序。现在当我运行 manage.py runserver (通过eclipse的自定义命令选项)它说验证模型... 但是当我转到 http:// localhost:8000 时,我没有回复,就像服务器没有运行一样我做错了吗?

解决方案

尝试运行 - noreload 避免得到两个进程,它有助于在eclipse中的错误输出重定向,并可能会给你更多的提示,实际的问题。



另外,从命令行做同样的看看你是否也遇到同样的问题。



更新:根据上述Fabio的评论,您可以通过以下方式解决此问题:在此问题中解释。


I've installed django on my windows machine, added the pydev and django plugins for eclipse, create a django project, and ran manage.py createapp to create one app. Now when I run manage.py runserver (via eclipse's "custom command" option") It says Validating models... but when I go to http://localhost:8000 I get no response, as though the server is not running. What am I doing wrong?

解决方案

Try running with --noreload to avoid getting two processes. It helps with error output redirection in eclipse, and may give you more hints towards the actual problem.

Also, do the same from the command-line to see if you get the same problem.

Update: Per Fabio's comment above, you can work around this problem by hacking the code, as explained in this question.

这篇关于不能得到django工作在eclipse +窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆