【问题标题】:No module names 'notifications.signals'; 'notifications' is not a package没有名为“notifications.signals”的模块; “通知”不是一个包
【发布时间】:2023-03-21 19:46:01
【问题描述】:

您好,我的 Django 项目有问题。当我在 Pycharm 中运行 celery 时出现此错误:

No module named 'notifications.signals'; 'notifications' is not a package

虽然当我在 Python 控制台中输入以下内容时:

from notifications.signals import notify

你能帮帮我吗?

非常感谢

【问题讨论】:

  • 你安装了通知吗?
  • 我安装了 django-notifications 和 django-notification 但它不起作用:/

标签: python-3.x django notifications celery


【解决方案1】:

如果您将 PyCharm 配置为使用成功执行 import 语句时使用的相同环境,那么它将按预期工作。

【讨论】:

    猜你喜欢
    • 2017-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-21
    • 2020-09-09
    • 2020-12-06
    • 2019-07-07
    • 2020-12-27
    相关资源
    最近更新 更多