Я пытаюсь добавить функцию номеров в API видеозвонков, используя Django, python и WebRtc. Но я получаю ошибку, как показано ниже, [закрыто]
HTTP GET /favicon.ico/ 500 [0.11, 127.0.0.1:61656]
Internal Server Error: /first/
Traceback (most recent call last):
File "C:\project\videocall\venv\lib\site-packages\asgiref\sync.py", line 451, in thread_handler
raise exc_info[1]
File "C:\project\videocall\venv\lib\site-packages\django\core\handlers\exception.py", line 42, in inner
response = await get_response(request)
File "C:\project\videocall\venv\lib\site-packages\django\core\handlers\base.py", line 253, in _get_response_async
response = await wrapped_callback(
File "C:\project\videocall\venv\lib\site-packages\asgiref\sync.py", line 414, in __call__
ret = await asyncio.wait_for(future, timeout=None)
File "C:\Users\k Bharath Reddy\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 408, in wait_for
return await fut
File "C:\Users\k Bharath Reddy\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\project\videocall\venv\lib\site-packages\asgiref\sync.py", line 455, in thread_handler
return func(*args, **kwargs)
File "C:\project\videocall\videocallproject\videocallapp\views.py", line 11, in video
return render(request, 'video.html', {
File "C:\project\videocall\venv\lib\site-packages\django\shortcuts.py", line 24, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "C:\project\videocall\venv\lib\site-packages\django\template\loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "C:\project\videocall\venv\lib\site-packages\django\template\loader.py", line 15, in get_template
return engine.get_template(template_name)
File "C:\project\videocall\venv\lib\site-packages\django\template\backends\django.py", line 34, in get_template
return Template(self.engine.get_template(template_name), self)
File "C:\project\videocall\venv\lib\site-packages\django\template\engine.py", line 176, in get_template
template, origin = self.find_template(template_name)
File "C:\project\videocall\venv\lib\site-packages\django\template\engine.py", line 158, in find_template
template = loader.get_template(name, skip=skip)
File "C:\project\videocall\venv\lib\site-packages\django\template\loaders\base.py", line 28, in get_template
return Template(
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 154, in __init__
self.nodelist = self.compile_nodelist()
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 200, in compile_nodelist
return parser.parse()
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 484, in parse
raise self.error(token, e)
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 482, in parse
filter_expression = self.compile_filter(token.contents)
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 600, in compile_filter
return FilterExpression(token, self)
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 696, in __init__
filter_func = parser.find_filter(filter_name)
File "C:\project\videocall\venv\lib\site-packages\django\template\base.py", line 606, in find_filter
raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name)
django.template.exceptions.TemplateSyntaxError: Invalid filter: 'room_name'
Вернуться на верх