简体   繁体   English

Django-admin startproject mysite 没有创建目录

[英]Django-admin startproject mysite doesn't create directory

I use virtualenv and when I type "django-admin startproject mysite" then there are no errors but it also doesn't create directory, why?我使用 virtualenv,当我输入“django-admin startproject mysite”时没有错误,但它也没有创建目录,为什么?

use 'pwd' in terminal if you are a mac/linux user and 'cd' in your shell or command promp and so find your project in that directory but before that 'pip freeze' or 'pip list' it will give you a list of all the installed packages in your virtual environment make sure you have django in that list after that use dot after start project command如果您是 mac/linux 用户,请在终端中使用“pwd”,在 shell 或命令提示符中使用“cd”,然后在该目录中找到您的项目,但在“pip freeze”或“pip list”之前它会给你一个列表在您的虚拟环境中安装的所有软件包中,确保您在该列表中有 django 在启动项目命令后使用点
django-admin startproject mysite. django-admin 启动项目 mysite。

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

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