简体   繁体   English

django-admin startproject foo:访问被拒绝

[英]django-admin startproject foo : Access denied

I am trying to install django and create a project I am not able to get any success I have looked on internet but could not find solution for this.我正在尝试安装 django 并创建一个我在互联网上查看但无法找到解决方案但无法获得任何成功的项目。 在此处输入图像描述

I am also running my cmd with admin.我也在用管理员运行我的 cmd。 I have also check permission of folder.我还检查了文件夹的权限。 I also tried running in virtual env but same error.我也尝试在虚拟环境中运行但同样的错误。

If you see a “permission denied” message when running django-admin.py startproject, you'll need to change the file's permissions.如果在运行 django-admin.py startproject 时看到“权限被拒绝”消息,则需要更改文件的权限。 To do this, navigate to the directory where django-admin.py is installed (eg, cd /usr/local/bin) and run the command chmod +x django-admin.py.为此,导航到 django-admin.py 的安装目录(例如,cd /usr/local/bin)并运行命令 chmod +x django-admin.py。

In Windows just run command line with Administrator privilege.在 Windows 中,只需以管理员权限运行命令行。

Literally first thing in Google after search: "django-admin access is denied".搜索后谷歌的第一件事是:“django-admin access is denied”。

You are working in the C:\ drive,您在 C:\ 驱动器中工作,

go to another drive and create django project, most likely the problem will be solved. go 到另一个驱动器并创建 django 项目,很可能问题将得到解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM