question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BlogConfig matching query does not exist

See original GitHub issue

Ubuntu 18-04 in WSL (Windows 10 Pro) Following manual instructions from here

I missed publish web page step.

After stopping and starting server with python manage.py runserver have non-working app.

Environment:

Request Method: GET Request URL: http://localhost:8000/en/

Django Version: 2.2.9 Python Version: 3.6.8 Installed Applications: [‘djangocms_admin_style’, ‘django.contrib.auth’, ‘django.contrib.contenttypes’, ‘django.contrib.sessions’, ‘django.contrib.admin’, ‘django.contrib.sites’, ‘django.contrib.sitemaps’, ‘django.contrib.staticfiles’, ‘django.contrib.messages’, ‘cms’, ‘menus’, ‘sekizai’, ‘treebeard’, ‘djangocms_text_ckeditor’, ‘filer’, ‘easy_thumbnails’, ‘djangocms_bootstrap4’, ‘djangocms_bootstrap4.contrib.bootstrap4_alerts’, ‘djangocms_bootstrap4.contrib.bootstrap4_badge’, ‘djangocms_bootstrap4.contrib.bootstrap4_card’, ‘djangocms_bootstrap4.contrib.bootstrap4_carousel’, ‘djangocms_bootstrap4.contrib.bootstrap4_collapse’, ‘djangocms_bootstrap4.contrib.bootstrap4_content’, ‘djangocms_bootstrap4.contrib.bootstrap4_grid’, ‘djangocms_bootstrap4.contrib.bootstrap4_jumbotron’, ‘djangocms_bootstrap4.contrib.bootstrap4_link’, ‘djangocms_bootstrap4.contrib.bootstrap4_listgroup’, ‘djangocms_bootstrap4.contrib.bootstrap4_media’, ‘djangocms_bootstrap4.contrib.bootstrap4_picture’, ‘djangocms_bootstrap4.contrib.bootstrap4_tabs’, ‘djangocms_bootstrap4.contrib.bootstrap4_utilities’, ‘djangocms_file’, ‘djangocms_icon’, ‘djangocms_link’, ‘djangocms_picture’, ‘djangocms_style’, ‘djangocms_snippet’, ‘djangocms_googlemap’, ‘djangocms_video’, ‘aldryn_apphooks_config’, ‘aldryn_search’, ‘parler’, ‘taggit’, ‘taggit_autosuggest’, ‘meta’, ‘sortedm2m’, ‘djangocms_blog’, ‘mysite’] Installed Middleware: [‘cms.middleware.utils.ApphookReloadMiddleware’, ‘django.contrib.sessions.middleware.SessionMiddleware’, ‘django.middleware.csrf.CsrfViewMiddleware’, ‘django.contrib.auth.middleware.AuthenticationMiddleware’, ‘django.contrib.messages.middleware.MessageMiddleware’, ‘django.middleware.locale.LocaleMiddleware’, ‘django.middleware.common.CommonMiddleware’, ‘django.middleware.clickjacking.XFrameOptionsMiddleware’, ‘cms.middleware.user.CurrentUserMiddleware’, ‘cms.middleware.page.CurrentPageMiddleware’, ‘cms.middleware.toolbar.ToolbarMiddleware’, ‘cms.middleware.language.LanguageCookieMiddleware’]

Template error: In template /home/ivan/trying-django-cms/first-project/mysite/mysite/templates/base.html, error at line 35 BlogConfig matching query does not exist. 25 : float: left; 26 : width: 20%; 27 : } 28 : </style> 29 : {% render_block “css” %} 30 : </head> 31 : <body> 32 : {% cms_toolbar %} 33 : <div class="container"> 34 :

    35 : {% show_menu 0 100 100 100 %} 36 :
37 : {% block content %}{% endblock content %} 38 : </div> 39 : {% render_block “js” %} 40 : </body> 41 : </html> 42 :

Traceback:

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/core/handlers/exception.py” in inner 34. response = get_response(request)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/core/handlers/base.py” in _get_response 145. response = self.process_exception_by_middleware(e, request)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/core/handlers/base.py” in _get_response 143. response = response.render()

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/response.py” in render 106. self.content = self.rendered_content

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/response.py” in rendered_content 83. content = template.render(context, self._request)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/backends/django.py” in render 61. return self.template.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render 171. return self._render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in _render 163. return self.nodelist.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render 937. bit = node.render_annotated(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render_annotated 904. return self.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/loader_tags.py” in render 150. return compiled_parent._render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in _render 163. return self.nodelist.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render 937. bit = node.render_annotated(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render_annotated 904. return self.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/classytags/core.py” in render 153. return self.render_tag(context, **kwargs)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/sekizai/templatetags/sekizai_tags.py” in render_tag 89. rendered_contents = nodelist.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render 937. bit = node.render_annotated(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render_annotated 904. return self.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/classytags/core.py” in render 153. return self.render_tag(context, **kwargs)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/cms/templatetags/cms_tags.py” in render_tag 447. return toolbar.render_with_structure(context, nodelist)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/cms/toolbar/toolbar.py” in render_with_structure 477. rendered_contents = nodelist.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render 937. bit = node.render_annotated(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/template/base.py” in render_annotated 904. return self.render(context)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/classytags/core.py” in render 153. return self.render_tag(context, **kwargs)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/classytags/helpers.py” in render_tag 88. flatten_context(self.get_context(context, **kwargs))

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/menus/templatetags/menu_tags.py” in get_context 144. nodes = menu_renderer.get_nodes(namespace, root_id)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/utils/functional.py” in wrapper 152. return getattr(res, method_name)(*args, **kw)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/menus/menu_pool.py” in get_nodes 226. nodes = self._build_nodes()

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/menus/menu_pool.py” in _build_nodes 177. nodes = menu.get_nodes(self.request)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/djangocms_blog/cms_menus.py” in get_nodes 51. namespace=self.instance.application_namespace

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/db/models/manager.py” in manager_method 82. return getattr(self.get_queryset(), name)(*args, **kwargs)

File “/home/ivan/trying-django-cms/env/lib/python3.6/site-packages/django/db/models/query.py” in get 408. self.model._meta.object_name

Exception Type: DoesNotExist at /en/ Exception Value: BlogConfig matching query does not exist.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:32 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
yakkycommented, May 17, 2020
0reactions
g3rb3ncommented, May 17, 2020

Cool. I did not notice it was actually the first line that failed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django Error: Profile matching query does not exist
It means the Profile object you are looking for does not exist in the database. You can handle the exception like so:
Read more >
subject:"Matching query does not exist" - The Mail Archive
It means that the data which you are looking for is not exists in that data base, check properly wether the searching data...
Read more >
djangocms-blog Documentation - Read the Docs
djangocms_blog can install and configue itself if it does not find any attached instance of itself. This feature is enable by default and...
Read more >
Querying and Finding Entities - EF6 - Microsoft Learn
When results are returned from the database, objects that do not exist in the context are attached to the context. If an object...
Read more >
kendra — Boto3 Docs 1.26.35 documentation - Amazon AWS
If the ID of a sync job is not provided and there is no sync job running, ... The identifier of the index...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found