Django-2:创建项目Project
命令:django-admin startproject mysite
PS C:\Users\liujun> cd e:\pyapp\cmdb
PS E:\pyapp\cmdb> django-admin startproject mysite
PS E:\pyapp\cmdb> dir
目录: E:\pyapp\cmdb
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2022/04/16 14:54 mysite
PS E:\pyapp\cmdb> cd mysite
PS E:\pyapp\cmdb\mysite> dir
目录: E:\pyapp\cmdb\mysite
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2022/04/16 14:54 mysite
-a---- 2022/04/16 14:54 684 manage.py
PS E:\pyapp\cmdb\mysite> cd mysite
PS E:\pyapp\cmdb\mysite\mysite> dir
目录: E:\pyapp\cmdb\mysite\mysite
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2022/04/16 14:54 405 asgi.py
-a---- 2022/04/16 14:54 3344 settings.py
-a---- 2022/04/16 14:54 769 urls.py
-a---- 2022/04/16 14:54 405 wsgi.py
-a---- 2022/04/16 14:54 0 __init__.py
PS E:\pyapp\cmdb\mysite\mysite>
PyCharm里打开的样子