Environment:
Request Method: GET
Request URL: http://localhost:8000/blog/
Django Version: 2.2.4
Python Version: 3.7.4
Installed Applications:
['home',
'search',
'flex',
'streams',
'blog',
'menus',
'site_settings',
'wagtail.contrib.forms',
'wagtail.contrib.redirects',
'wagtail.contrib.settings',
'wagtail.contrib.routable_page',
'wagtail.embeds',
'wagtail.sites',
'wagtail.users',
'wagtail.snippets',
'wagtail.documents',
'wagtail.images',
'wagtail.search',
'wagtail.admin',
'wagtail.core',
'modelcluster',
'taggit',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar']
Installed Middleware:
['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',
'django.middleware.security.SecurityMiddleware',
'wagtail.core.middleware.SiteMiddleware',
'wagtail.contrib.redirects.middleware.RedirectMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware']
Template error:
In template C:\Users\Rory.Ferguson\Repositories\Bitbucket\joudev\joudev\home\templates\home\main_menu.html, error at line 19
Menu matching query does not exist.
9 : <a class="navbar-brand" href="/"><img src="{{ logo.url }}" alt="" class="center ml-3 mr-5" style="width: 100px;height:auto;" /></a>
10 : {% endif %}
11 :
12 : <!-- BURGER MOBILE MENU -->
13 : <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
14 : <span class="navbar-toggler-icon"></span>
15 : </button>
16 :
17 : <div class="collapse navbar-collapse" id="navbarColor01">
18 :
19 : {% get_menu "main" as navigation %}
20 :
21 : {% if navigation.menu_items %}
22 : <ul class="navbar-nav mr-auto">
23 : {% for item in navigation.menu_items.all %}
24 : <li class="nav-item">
25 : <a class="nav-link" href="{{ item.link }}">{{ item.title }}</a>
26 : </li>
27 : {% endfor %}
28 : </ul>
29 : {% endif %}
Traceback:
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\core\handlers\exception.py" in inner
34. response = get_response(request)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\core\handlers\base.py" in _get_response
145. response = self.process_exception_by_middleware(e, request)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\core\handlers\base.py" in _get_response
143. response = response.render()
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\response.py" in render
106. self.content = self.rendered_content
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\response.py" in rendered_content
83. content = template.render(context, self._request)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\backends\django.py" in render
61. return self.template.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render
171. return self._render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\test\utils.py" in instrumented_test_render
96. return self.nodelist.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render
937. bit = node.render_annotated(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render_annotated
904. return self.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\loader_tags.py" in render
150. return compiled_parent._render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\test\utils.py" in instrumented_test_render
96. return self.nodelist.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render
937. bit = node.render_annotated(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render_annotated
904. return self.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\loader_tags.py" in render
188. return template.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render
173. return self._render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\test\utils.py" in instrumented_test_render
96. return self.nodelist.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render
937. bit = node.render_annotated(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\base.py" in render_annotated
904. return self.render(context)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\template\library.py" in render
192. output = self.func(*resolved_args, **resolved_kwargs)
File "C:\Users\Rory.Ferguson\Repositories\Bitbucket\joudev\joudev\menus\templatetags\menus_tags.py" in get_menu
9. return Menu.objects.get(slug=slug)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\db\models\manager.py" in manager_method
82. return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\Rory.Ferguson\.virtualenvs\joudev-4JJUEelb\lib\site-packages\django\db\models\query.py" in get
408. self.model._meta.object_name
Exception Type: DoesNotExist at /blog/
Exception Value: Menu matching query does not exist.