Code review comment for lp:~daker/loco-team-portal/fix.707614

Revision history for this message
Chris Johnston (cjohnston) wrote :

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/teams/ubuntu-us-florida
Django Version: 1.2.5
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.admin',
 'common',
 'teams',
 'venues',
 'events',
 'meetings',
 'userprofiles',
 'django_openid_auth',
 'south',
 'bzr_apps']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')

Template error:
In template /home/chris/Dropbox/Projects/loco-directory/reviews/loco_directory/templates/teams/team_detail.html, error at line 2
   'teams_tags' is not a valid tag library: Template library teams_tags not found, tried django.templatetags.teams_tags,django.contrib.admin.templatetags.teams_tags,meetings.templatetags.teams_tags
   1 : {% extends "base.html" %}

   2 : {% load i18n teams_tags %}

   3 :

   4 : {% block title %}{% trans team.name %} | {% trans "Ubuntu LoCo Team Directory" %} {% endblock %}

   5 :

   6 : {% block sub_nav_links %}

   7 : <a class="sub-nav-item" href="{% url team-list %}" title="{% trans "Back to Teams List" %}">{% trans "Back to Teams List" %}</a>

   8 : {% if is_member %}{% else %} <a class="sub-nav-item" href="https://launchpad.net/~{{ team.lp_name }}/+join">{% trans "Join This Team!" %}</a>{% endif %}

   9 : {% if is_admin %}<a class="sub-nav-item" href="{% url team-edit team.lp_name %}" title="{% trans "Edit Details" %}">{% trans "Edit Details" %}</a>{% endif %}

   10 : {% if is_admin and not team.active %}<a class="sub-nav-item" href="{% url select-other-team team.lp_name %}" title="{% trans "Merge with another team" %}">{% trans "Merge team" %}</a>{% endif %}

   11 : {% if is_member %}<a class="sub-nav-item" href="{% url team-event-new team.lp_name %}" title="{% trans "Add New Event" %}">{% trans "Add New Event" %}</a>{% endif %}

   12 : {% if is_member %}<a class="sub-nav-item" href="{% url team-meeting-new team.lp_name %}" title="{% trans "Add New Meeting" %}">{% trans "Add New Meeting" %}</a>{% endif %}

Traceback:
File "/usr/lib/pymodules/python2.7/django/core/handlers/base.py" in get_response
  100. response = callback(request, *callback_args, **callback_kwargs)
File "/home/chris/Dropbox/Projects/loco-directory/reviews/loco_directory/teams/views.py" in team_detail
  170. context, RequestContext(request))
File "/usr/lib/pymodules/python2.7/django/shortcuts/__init__.py" in render_to_response
  20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/lib/pymodules/python2.7/django/template/loader.py" in render_to_string
  181. t = get_template(template_name)
File "/usr/lib/pymodules/python2.7/django/template/loader.py" in get_template
  160. template = get_template_from_string(template, origin, template_name)
File "/usr/lib/pymodules/python2.7/django/template/loader.py" in get_template_from_string
  168. return Template(source, origin, name)
File "/usr/lib/pymodules/python2.7/django/template/__init__.py" in __init__
  158. self.nodelist = compile_string(template_string, origin)
File "/usr/lib/pymodules/python2.7/django/template/__init__.py" in compile_string
  186. return parser.parse()
File "/usr/lib/pymodules/python2.7/django/template/__init__.py" in parse
  282. compiled_result = compile_func(self, token)
File "/usr/lib/pymodules/python2.7/django/template/loader_tags.py" in do_extends
  195. nodelist = parser.parse()
File "/usr/lib/pymodules/python2.7/django/template/__init__.py" in parse
  282. compiled_result = compile_func(self, token)
File "/usr/lib/pymodules/python2.7/django/template/defaulttags.py" in load
  928. (taglib, e))

Exception Type: TemplateSyntaxError at /teams/ubuntu-us-florida
Exception Value: 'teams_tags' is not a valid tag library: Template library teams_tags not found, tried django.templatetags.teams_tags,django.contrib.admin.templatetags.teams_tags,meetings.templatetags.teams_tags

review: Needs Fixing

« Back to merge proposal