python can't open file 'manage.py': [Errno 2] No such file or directory


 

 

 問題原因:

我的python是放在C盤的,而我的django項目是放在D盤的,直接執行python manage.py runserver,他找的是C盤的manage.py。

解決方法:

1.指定項目路徑

python D:\py\test2\mysite\manage.py runserver

2.cd mysite目錄

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM