Django 中的 Newrelic 错误:配置已经完成

Newrelic error in Django : Configuration has already been done

我在尝试 运行 时收到此错误 python manage.py runserver 对于我的 Django 项目,

newrelic.api.exceptions.ConfigurationError: Configuration has already been done against differing configuration file or environment. Prior configuration file used was "/home/project/newrelic.ini" and environment "staging".'

这是什么意思??如何处理?

你刚刚设置了 New Relic 了吗?

我认为这是您的 procfile 的问题。您很可能刚刚编辑过的内容。

根据您的 wsgi,您的 procfile 应该看起来像这样。

web: newrelic-admin run-program gunicorn hello.wsgi --log-file -