Помогите пожалуйста разобраться в данной проблеме, вот ошибка:
Internal Server Error: /topics/1/
Traceback (most recent call last):
File "B:\learning_log\ll_env\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "B:\learning_log\ll_env\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "B:\learning_log\ll_env\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "b:\learning_log\learning_logs\views.py", line 24, in topic
return render(request, 'learning_logs/topic.html', context)
File "B:\learning_log\ll_env\lib\site-packages\django\shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "B:\learning_log\ll_env\lib\site-packages\django\template\loader.py", line 62, in render_to_string
return template.render(context, request)
File "B:\learning_log\ll_env\lib\site-packages\django\template\backends\django.py", line 61, in render
return self.template.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 171, in render
return self._render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 163, in _render
return self.nodelist.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 936, in render
bit = node.render_annotated(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 903, in render_annotated
return self.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 163, in _render
return self.nodelist.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 936, in render
bit = node.render_annotated(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 903, in render_annotated
return self.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 936, in render
bit = node.render_annotated(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\base.py", line 903, in render_annotated
return self.render(context)
File "B:\learning_log\ll_env\lib\site-packages\django\template\defaulttags.py", line 443, in render
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
File "B:\learning_log\ll_env\lib\site-packages\django\urls\base.py", line 87, in reverse
return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
File "B:\learning_log\ll_env\lib\site-packages\django\urls\resolvers.py", line 677, in _reverse_with_prefix
raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'new_entry' with arguments '('',)' not found. 1 pattern(s) tried: ['new_entry/(?P[0-9]+)/$']
[21/Apr/2020 19:14:44] "GET /topics/1/ HTTP/1.1" 500 147559
urlpatterns = [
# Домашняя страница
path('', views.index, name='index'),
# Страница со списком всех тем
path('topics/', views.topics, name='topics'),
#Страница с подробной информацией по отдельной теме
path('topics/<inтt:topic_id>/', views.topic, name='topic'),
# Страница для добавления новой темы
path('new_topic/', views.new_topic, name='new_topic'),
path('new_entry/<int:topic_id>/', views.new_entry, name='new_entry'),
]
То есть не верен этот код? Но я не вовсем понимаю , я же передаю int:topic_id ?
Заранее спасибо за ответ