nvironment:
Request Method: GET Request URL: http://127.0.0.1:8000/polls/ Django Version: 3.1.7 Python Version: 3.9.0 Installed Applications: ['polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Template error: In template C:\Users\Mr Prosser\PycharmProjects\pythonProject15\pollster\templates\base.html, error at line 0 Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['polls/(?P<question_id>[0-9]+)$'] 1 : <!DOCTYPE html> 2 : <html lang="en"> 3 : <head> 4 : <meta charset="UTF-8"> 5 : <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous"> 6 : <title>Pollster {%block title%}{% endblock %}</title> 7 : </head> 8 : <body> 9 : <div class = "container"> 10 : <div class="row"> Traceback (most recent call last): File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\Mr Prosser\PycharmProjects\pythonProject15\pollster\polls\views.py", line 13, in index return render(request, 'polls/index.html', context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\shortcuts.py", line 19, in render content = loader.render_to_string(template_name, context, request, using=using) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\loader.py", line 62, in render_to_string return template.render(context, request) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\backends\django.py", line 61, in render return self.template.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 170, in render return self._render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 162, in _render return self.nodelist.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 938, in render bit = node.render_annotated(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 905, in render_annotated return self.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\loader_tags.py", line 150, in render return compiled_parent._render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 162, in _render return self.nodelist.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 938, in render bit = node.render_annotated(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 905, in render_annotated return self.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\loader_tags.py", line 62, in render result = block.nodelist.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 938, in render bit = node.render_annotated(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 905, in render_annotated return self.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\defaulttags.py", line 312, in render return nodelist.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 938, in render bit = node.render_annotated(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 905, in render_annotated return self.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\defaulttags.py", line 211, in render nodelist.append(node.render_annotated(context)) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\base.py", line 905, in render_annotated return self.render(context) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\template\defaulttags.py", line 446, in render url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\urls\base.py", line 87, in reverse return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) File "C:\Users\Mr Prosser\.virtualenvs\pythonProject15\lib\site-packages\django\urls\resolvers.py", line 685, in _reverse_with_prefix raise NoReverseMatch(msg) Exception Type: NoReverseMatch at /polls/ Exception Value: Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['polls/(?P<question_id>[0-9]+)$'] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1760747e-601d-4e5e-a97a-b65f07c3f471n%40googlegroups.com.