【问题标题】:django future feature absloute_import is not defineddjango 未来功能 abslute_import 未定义
【发布时间】:2015-09-30 12:33:16
【问题描述】:

我在我的项目中使用 celery,并在开始时调用我的应用程序:

from __future__ import absloute_import

from .celery import app as celery_app

当我运行服务器时它说..

future feature absloute_import is not defined

我正在使用 python 2.7 和 django 1.7 什么问题??

【问题讨论】:

    标签: python django celery


    【解决方案1】:

    你拼错了“绝对”:P 你想要...

    from __future__ import absolute_import
    

    【讨论】:

      猜你喜欢
      • 2021-03-05
      • 2018-10-19
      • 1970-01-01
      • 2016-10-29
      • 1970-01-01
      • 2022-06-30
      • 1970-01-01
      • 2014-07-21
      • 2020-09-22
      相关资源
      最近更新 更多