小编Die*_*a87的帖子

使用 daphne 部署 django Web 应用程序时出错:请求设置 INSTALLED_APPS,但未配置设置

我一直在与尝试部署使用通道的 django 应用程序时遇到的错误作斗争。

heroku 日志中的错误

Starting process with command `daphne friendship.asgi:application --port 52589 --bind 0.0.0.0 -v2`
2021-06-02T19:51:57.338171+00:00 heroku[web.1]: Process exited with status 1
2021-06-02T19:51:57.105387+00:00 app[web.1]: Traceback (most recent call last):
2021-06-02T19:51:57.105477+00:00 app[web.1]: File "/app/.heroku/python/bin/daphne", line 8, in <module>
2021-06-02T19:51:57.105796+00:00 app[web.1]: sys.exit(CommandLineInterface.entrypoint())
2021-06-02T19:51:57.105861+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/daphne/cli.py", line 170, in entrypoint
2021-06-02T19:51:57.106200+00:00 app[web.1]: cls().run(sys.argv[1:])
2021-06-02T19:51:57.106259+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/daphne/cli.py", line 232, in run
2021-06-02T19:51:57.106713+00:00 app[web.1]: application = import_by_path(args.application)
2021-06-02T19:51:57.106774+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/daphne/utils.py", line 12, in import_by_path
2021-06-02T19:51:57.107059+00:00 app[web.1]: target = importlib.import_module(module_path)
2021-06-02T19:51:57.107118+00:00 app[web.1]: …
Run Code Online (Sandbox Code Playgroud)

python django heroku django-channels daphne

6
推荐指数
1
解决办法
2534
查看次数

标签 统计

daphne ×1

django ×1

django-channels ×1

heroku ×1

python ×1