upgrading to 4.3.1 and having issues with keywords

19 views
Skip to first unread message

Nick Owen

unread,
Apr 29, 2021, 1:50:45 PMApr 29
to Mezzanine Users
Hi:

I am trying to update from 4.0.1 to 4.3.1, django 1.8.9 to 1.11 and python 2.7.5 to 3.6. Everything is peachy except keywords for an app - they don't work anywhere.  The app is a very basic extension of the page model.

Keyword pages I created for example /en-us/support/how-to/keyword/cisco/ come up as a 404.  

Keywords listed at the bottom of a page generate this error:

Exception Type:
NoReverseMatchException Value:
Reverse for 'howtos_list_tag' not found. 'howtos_list_tag' is not a valid view function or pattern name.

Full traceback:
Environment:


Request Method: GET

Django Version: 1.11
Python Version: 3.6.8
Installed Applications:
('mezzanine.boot',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.redirects',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.sitemaps',
 'mezzanine.conf',
 'mezzanine.core',
 'mezzanine.generic',
 'mezzanine.pages',
 'mezzanine.blog',
 'mezzanine.forms',
 'mezzanine.galleries',
 'mezzanine.twitter',
 'howtos',
 'polls',
 'filebrowser_safe',
 'grappelli_safe',
 'django.contrib.admin',
 'django.contrib.staticfiles',
 'django_comments')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'mezzanine.core.request.CurrentRequestMiddleware',
 'mezzanine.core.middleware.RedirectFallbackMiddleware',
 'mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware',
 'mezzanine.core.middleware.SitePermissionMiddleware',
 'mezzanine.pages.middleware.PageMiddleware')


Template error:
In template /opt/update/howtos/templates/pages/howtos.html, error at line 164
   Reverse for 'howtos_list_tag' not found. 'howtos_list_tag' is not a valid view function or pattern name.   154 : {% endif %} -->
   155 : 
   156 : {% block meta_keywords %}
   157 : {% keywords_for page.howtos as keywords %}
   158 : {% if keywords %}
   159 : 
   160 : <!--
   161 : <p>Keywords:</p>
   162 : <ul> -->
   163 : <!--    {% for keyword in keywords %}
   164 :          <li><a href=" {% url 'howtos_list_tag' keyword.slug %} ">{{ keyword }}</a> </li>
   165 :  
   166 :     {% endfor %} -->
   167 : </ul> -->
   168 : 
   169 : {% endif %}
   170 : {% endblock %}
   171 : 
   172 : {% endblock %}
   173 : 
   174 :   


Traceback:

File "/opt/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/opt/venv/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  217.                 response = self.process_exception_by_middleware(e, request)

File "/opt/venv/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  215.                 response = response.render()

File "/opt/venv/lib64/python3.6/site-packages/django/template/response.py" in render
  107.             self.content = self.rendered_content

File "/opt/venv/lib64/python3.6/site-packages/django/template/response.py" in rendered_content
  84.         content = template.render(context, self._request)

File "/opt/venv/lib64/python3.6/site-packages/django/template/backends/django.py" in render
  66.             return self.template.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render
  207.                     return self._render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in _render
  199.         return self.nodelist.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/loader_tags.py" in render
  63.                 result = self.nodelist.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/loader_tags.py" in render
  63.                 result = self.nodelist.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/defaulttags.py" in render
  322.                 return nodelist.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/defaulttags.py" in render
  216.                     nodelist.append(node.render_annotated(context))

File "/opt/venv/lib64/python3.6/site-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/opt/venv/lib64/python3.6/site-packages/django/template/defaulttags.py" in render
  458.             url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)

File "/opt/venv/lib64/python3.6/site-packages/django/urls/base.py" in reverse
  91.     return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))

File "/opt/venv/lib64/python3.6/site-packages/django/urls/resolvers.py" in _reverse_with_prefix
  497.         raise NoReverseMatch(msg)

Exception Type: NoReverseMatch at /learn-more/features-benefits/features-by-edition/
Exception Value: Reverse for 'howtos_list_tag' not found. 'howtos_list_tag' is not a valid view function or pattern name.



Reply all
Reply to author
Forward
0 new messages