我正在尝试使用django-admin,但遗憾的是它不能正常工作,我必须使用python -m django,我如何修复它给出的命令行异常: django-admin : The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and
我使用这个命令: django-admin startproject Hello 来启动一个新项目,但我收到以下错误 django-admin : The term 'django-admin' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the
path is correct and tr
我已经在我的计算机上安装了django,但是当我试图在我的终端上运行任何django-admin命令时,我会得到以下错误:
django-admin : The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try ag
当我尝试运行django-admin命令时,它失败了,并显示以下错误。 $ django-admin startproject pyshop
The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At
我对django非常陌生,我想知道我是否能得到一些帮助,我正在浏览django网站上的指南,在终端运行了这个命令之后,我开始用...\> django-admin startproject mysite启动一个新项目,我得到了一个错误的信息。
django-admin : The term 'django-admin' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a
我超级迷失和沮丧。不知道下一步该做什么。请谁帮帮我,这是我问的最后一个问题。我尝试了所有的选项,但都不起作用。
fatgezimbela@MacBook-Pro-2 ~ % pip3 install django==3.0.3
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/559
但是它已经安装好了,因为当我运行时
python -m django --version
它显示了
1.10.1。
但是,当我尝试启动某个项目django-admin startproject mysite或使用django-admin --version检查版本时,如下所示
The program 'django-admin' is currently not installed. You can install it by typing:
sudo apt-get install python-django`
我用的是ubuntu 14.04。我是django的新手,我只是
我已经使用virtualenvwrapper命令mkvirtualenv -a <path to project> django_project初始化了一个虚拟环境。
然后我用pip install django安装了django。但是如果我尝试使用django-admin,我会得到:
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 7, in <module>
from django.core.management import execute_fr
当我运行以下命令时:
django-admin startproject project_name
我得到了以下错误:
The program 'django-admin' is currently not installed. You can install it by typing:
sudo apt install python-django-common
我按照它告诉我的做了,现在我得到了以下错误:
Cannot find installed version of python-django or python3-django.
在运行相同的命令时,我不能理解是否安装了
我在命令托盘中输入了django-admin startproject myproject,它给了我一条错误消息:'django-admin' is not recognized as an internal or external command, operable program or batch file.,我非常希望得到一些解释或提示。谢谢!
在django-admin中注册csv,并通过django-admin中的一个操作将csv转换为json并将值存储在中。
但是,在动作django-admin中,我得到了这个错误,我无法将它转换为json.
admin.py
(....)
def read_data_csv(path):
with open(path, newline='') as csvfile:
reader = csv.DictReader(csvfile)
data = []
for row in reader:
data