简体   繁体   English

无法运行命令 python3 manage.py runserver

[英]Can't run the command python3 manage.py runserver

I want to run the Djando server.我想运行 Django 服务器。 I did everything that is required to do it, but when I run the following command nothing happened at all:我做了所有需要做的事情,但是当我运行以下命令时,什么也没发生:

  1. I've run:我跑过:

     django-admin startproject "project_name"
  2. Then run:然后运行:

     cd "project_name"
  3. Then然后

    ls
  4. Finally, I tried to run:最后,我尝试运行:

     python3 manage.py runserver

But still nothing happened.但仍然什么也没发生。 It just returned to (env) Maxs-MacBook-Pro:website user$ enter image description here它刚刚返回到 (env) Maxs-MacBook-Pro:website user$ enter image description here

Does your virtual environment has django package in it.You can find it using 'pip freeze' command?Otherwise you need to install it in your virtual environment你的虚拟环境中是否有django package。你可以使用'pip freeze'命令找到它吗?否则你需要在你的虚拟环境中安装它

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

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