python - 如何在 PyCharm 项目 View 中移动项目文件夹?

标签 python django pycharm

我正在使用 PyCharm 做一些 Django 项目,我在左边的项目 View 中打开了它们。我想将我目前正在处理的项目移到列表底部以避免混淆。 PyCharm 默认不允许我这样做。在我执行此操作之前是否需要调整某些设置?看看这个截图。我想要做的是单击并拖动 'Django_pro' 到列表底部,然后伸展树(Splay Tree)。这能实现吗?

Project View window

最佳答案

据我所知,文件导航器面板中的显示顺序(它们中的任何一个 - ProjectProject Files 等)不是用户可以任意选择的。

为避免混淆,将您的 django 项目实际拆分为单独的 PyCharm 项目可能是更好的主意 - 您现在拥有的只是一个单个 PyCharm 项目其中包含分布在多个目录中的文件。通过防止项目之间的潜在冲突,拆分还将为您省去麻烦。

有了单独的 PyCharm 项目,就不会出现这样的困惑,因为每个项目都在自己的窗口中打开(即使选择重新使用 Pycharm 窗口,现有项目在新项目打开时也会关闭)。来自 Opening, Reopening and Closing Projects文档部分:

PyCharm allows opening several projects simultaneously in different windows. By default, each time you open a project while another one is opened, PyCharm prompts you to choose whether to open the project in the same window or in a new window. If necessary, you can change this behavior using controls on the System Settings page.

In the Project Opening section of this page, you can choose one of the following options:

  • Open project in a new window to open a new PyCharm window each time a new project is opened.
  • Open project in the same window to stay in the same PyCharm window.
  • Confirm window to open project in to keep the default behavior and display a dialog box to choose how to open each new project.

您可能想要浏览整个 Creating and Managing Projects章节和/或 Creating and managing Django project教程。

关于python - 如何在 PyCharm 项目 View 中移动项目文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39236006/

相关文章:

mysql - 当我的 MySQL 字段也有小时/分钟/秒时,有什么方法可以使用 Django.models 按日期计算 "group by"吗?

python - 让Celery在没有task_always_eager的情况下使用Django的测试数据库

python - 在 PyCharm 中调试时在 EventFiringWebDriver 中触发异常

python - 在 Python 2 中将多个列表和字典解包为函数参数

python - Keras 验证损失计算不正确

django - 从一条线上处决两名 celery worker

python - 使用pycharm调试,如何在不进入django库的情况下进入项目

python - 创建一个 one-hot pandas 数据框

python - 使用带有 flask 的python-saml获取 "Signature validation failed. SAML Response rejected"

python - 如何让 Python 3.7 使用超过 2 GB 的内存? (64位设置)