Opened 18 years ago

Last modified 9 years ago

#4356 closed

Problem with Template library django.template.loader_tag - SVN Version 5311 — at Version 1

Reported by: anonymous Owned by: Jacob
Component: Uncategorized Version: 0.96
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Malcolm Tredinnick)

Traceback (most recent call last):
File "/home/meli/Projet/atelier_rouelibre/django/core/handlers/base.py" in get_response
  68. callback, callback_args, callback_kwargs = resolver.resolve(request.path)
File "/home/meli/Projet/atelier_rouelibre/django/core/urlresolvers.py" in resolve
  1
69. for pattern in self.urlconf_module.urlpatterns:
File "/home/meli/Projet/atelier_rouelibre/django/core/urlresolvers.py" in _get_urlconf_module
  186. self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/urls.py" in
  2. from atelier_rouelibre.views import index
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/views.py" in
  2. from django.template import Context, loader
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/django/template/loader.py" in
  118. add_to_builtins('django.template.loader_tags')
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/django/template/__init__.py" in add_to_builtins
  933. builtins.append(get_library(module_name))
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/django/template/__init__.py" in get_library
  922. mod = __import__(module_name, {}, {}, [''])
File "/home/meli/Projet/atelier_rouelibre/django/template/loader_tags.py" in
  3. from django.template.loader import get_template, get_template_from_string, find_template_source
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/django/template/loader.py" in
  118. add_to_builtins('django.template.loader_tags')
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/django/template/__init__.py" in add_to_builtins
  933. builtins.append(get_library(module_name))
File "/home/meli/Projet/atelier_rouelibre/../atelier_rouelibre/django/template/__init__.py" in get_library
  929. raise InvalidTemplateLibrary, "Template library %s does not have a variable named 'register'" % module_name

  InvalidTemplateLibrary at /
  Template library django.template.loader_tags does not have a variable named 'register'

Change History (1)

comment:1 by Malcolm Tredinnick, 18 years ago

Description: modified (diff)

(Fixed description formatting)

What were you doing to trigger this traceback? The loader_tags.py module definitely does have a variable named register in it, so there is something else going on here.

Can you run "svn status" and check that no files in your source tree are changed from the versions in trunk?

Note: See TracTickets for help on using tickets.
Back to Top