无法启动任何Django应用 [英] Cannot start any django app

查看:205
本文介绍了无法启动任何Django应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Django的新手,每次尝试运行
python panel / manage.py startapp%app%(面板是我的项目)时,它都会我的错误:

I am a newbie at Django and everytime I try to run python panel/manage.py startapp %app% (panel is my project) it gives me the error:

Error: '%app%' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.

我做错了吗?

当然,公司,联系人或统计信息不是现有Python模块的名称吗?

Surely companies or contacts or stats is not the name of an existing Python module?

推荐答案

也许您需要

cd panel
python manage.py startapp yourappname

我不确定从项目上方的目录运行命令是否可以正常工作。

I'm not sure running the command from a directory above your project will work properly.

这篇关于无法启动任何Django应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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