Python 如何在 PyCharm 社区版中为 Django 项目运行调试服务器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27269574/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 01:35:49  来源:igfitidea点击:

How to run Debug server for Django project in PyCharm Community Edition?

pythondjangoconfigurationidepycharm

提问by emkorybski

Has anyone had issues setting up a debug configuration for Django project in PyCharm Community Edition? Community Edition of the IDE is lacking the project type option on project setup and then when I am setting up Debug or Run config it asks me for a script it should run. What script would it be for Django, manage.py? Thanks in advance

有没有人在 PyCharm Community Edition 中为 Django 项目设置调试配置时遇到问题?IDE 的社区版缺少项目设置中的项目类型选项,然后当我设置调试或运行配置时,它会询问我应该运行的脚本。对于 Django 来说,manage.py 是什么脚本?提前致谢

采纳答案by Zlatko Ron?evi?

Yes you can.

是的你可以。

  1. In Run -> Edit Configurations create new configuration
  2. [+] / Python
  3. Name: runserver
  4. Scrip Path: path_to/manage.py
  5. Parameters: runserver
  1. 在运行 -> 编辑配置中创建新配置
  2. [+] / 蟒蛇
  3. 名称:运行服务器
  4. 脚本路径:path_to/manage.py
  5. 参数:运行服务器