While creating a django project in windows using command prompt,I created a directory using mkdir djproject ->my directory name
. Then when I tried creating a project using cd project -> my project name
, I received the error message "the system cannot find the path specified".
(myproject) C:\Users\USER>django-admin --version
2.2.1
(myproject) C:\Users\USER>mkdir djproject
(myproject) C:\Users\USER>cd djproject1
The system cannot find the path specified.
(myproject) C:\Users\USER>django-admin --version
2.2.1
[1](myproject) C:\Users\USER>mkdir djproject <-- You created a directory named djproject
[2](myproject) C:\Users\USER>cd djproject1
The system cannot find the path specified. <-- This error is caused by [2],
because you're trying to cd into a directory that does not exist.
If you would type dir
before the [2]
command, you would see that the only folder is djproject
. The correct syntax for creating a Django App is: django startproject <your_app_name>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.