如何在 PyCharm 社区版中为 Django 项目运行调试服务器? [英] How to run Debug server for Django project in PyCharm Community Edition?

查看:46
本文介绍了如何在 PyCharm 社区版中为 Django 项目运行调试服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

是的,你可以.

  1. 在运行中 -> 编辑配置创建新配置
  2. [+]/Python
  3. 名称:运行服务器
  4. 脚本路径:path_to/manage.py
  5. 参数:runserver

这篇关于如何在 PyCharm 社区版中为 Django 项目运行调试服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆