没有任何事情发生时,我做:python manage.py命令 [英] Nothing happens when I do: python manage.py command

查看:66
本文介绍了没有任何事情发生时,我做:python manage.py命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚进入django,目前正在通过主要教程。即使它早点工作,当我使用任何其他命令执行python manage.py runserver或python manage.py -h OR时,shell不会输出任何内容。想知道我在做错什么。

解决方案

首先,通过在shell中键入python来检查是否完全安装了python。



然后,您应该在django项目中尝试 python manage.py runserver 。如果您没有任何django项目,请尝试通过键入 django-admin.py startproject mysite 创建一个。如果您的shell中没有显示任何内容,那么您必须以错误的方式安装Django。



请参阅Django文档 https://docs.djangoproject.com/en/1.4/intro/install/


I'm new to django and currently going through the main tutorial. Even though it was working earlier, when I do python manage.py runserver OR python manage.py -h OR with any other command, the shell doesn't output anything. Wondering what I'm doing wrong.

解决方案

First, check if python is fully installed by typing "python" in a shell.

Then you should try python manage.py runserver inside your django project. If you don't have any django project, try creating one by typing django-admin.py startproject mysite. If nothing is displayed in your shell, you must have installed Django the wrong way.

Please refer to Django Documentation at https://docs.djangoproject.com/en/1.4/intro/install/

这篇关于没有任何事情发生时,我做:python manage.py命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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