简体   繁体   English

django-admin startproject无法正常工作

[英]django-admin startproject not working

I have created django file using django-admin startproject command and the file was saved in C drive, but I can't find that file in C drive. 我已经使用django-admin startproject命令创建了django文件,并且该文件已保存在C驱动器中,但是在C驱动器中找不到该文件。

So I again created django file with same name and it gives error : 所以我再次创建了具有相同名称的django文件,它给出了错误:

CommandError: 'C:\\WINDOWS\\system32\\website' already exists CommandError:'C:\\ WINDOWS \\ system32 \\ website'已经存在

Can someone help me to solve this problem. 有人可以帮我解决这个问题。

Thanks in advance!!! 提前致谢!!!

Create your project inside your user directory and not in Windows. 在用户目录而不是Windows中创建项目。

cd c:\Users\YourUserName\Desktop
mkdir Project
cd Project
django-admin startproject projectname

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

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