1 docker运行报错 悬赏已过期

发布于 2022-10-20 11:11:45

dvadmin-django | Traceback (most recent call last):
dvadmin-django | File "/usr/local/bin/daphne", line 8, in <module>
dvadmin-django | sys.exit(CommandLineInterface.entrypoint())
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/daphne/cli.py", line 170, in entrypoint
dvadmin-django | cls().run(sys.argv[1:])
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/daphne/cli.py", line 232, in run
dvadmin-django | application = import_by_path(args.application)
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/daphne/utils.py", line 12, in import_by_path
dvadmin-django | target = importlib.import_module(module_path)
dvadmin-django | File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
dvadmin-django | return _bootstrap._gcd_import(name[level:], package, level)
dvadmin-django | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
dvadmin-django | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
dvadmin-django | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
dvadmin-django | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
dvadmin-django | File "<frozen importlib._bootstrap_external>", line 843, in exec_module
dvadmin-django | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
dvadmin-django | File "/backend/./application/asgi.py", line 17, in <module>
dvadmin-django | from application.websocketConfig import websocket_application
dvadmin-django | File "/backend/./application/websocketConfig.py", line 4, in <module>
dvadmin-django | django.setup()
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 19, in setup
dvadmin-django | configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/django/conf/__init__.py", line 82, in getattr
dvadmin-django | self._setup(name)
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/django/conf/__init__.py", line 69, in _setup
dvadmin-django | self._wrapped = Settings(settings_module)
dvadmin-django | File "/usr/local/lib/python3.8/site-packages/django/conf/__init__.py", line 170, in init
dvadmin-django | mod = importlib.import_module(self.SETTINGS_MODULE)
dvadmin-django | File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
dvadmin-django | return _bootstrap._gcd_import(name[level:], package, level)
dvadmin-django | File "/backend/./application/settings.py", line 24, in <module>
dvadmin-django | from conf.env import *
dvadmin-django | ModuleNotFoundError: No module named 'conf.env'

查看更多

关注者
0
被浏览
686
1 个回答
hongzai
hongzai 认证专家 2022-10-20
life is coding,外包,远程协助,咨询添加微信:H0nGzA1

docker环境运行没有创建配置文件conf.env要手动进容器复制一份

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览