I got this error after updating my OSQA version at nullpointer.ph and running python2.5 manage.py migrate forum and restarting the apache server.

Environment:

Request Method: GET Request URL: http://nullpointer.ph/ Django Version:
1.1.1 Python Version: 2.5.4 Installed Applications: ['django.contrib.auth',  'django.contrib.contenttypes',  'django.contrib.sessions',  'django.contrib.sites',  'django.contrib.admin',  'django.contrib.humanize',  'django.contrib.sitemaps',  'django.contrib.markup',  'forum',  'south'] Installed Middleware: ['django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'forum.middleware.extended_user.ExtendedUser', 'forum.middleware.anon_user.ConnectToSessionMessagesMiddleware', 'forum.middleware.request_utils.RequestUtils', 'forum.middleware.cancel.CancelActionMiddleware', 'forum.middleware.admin_messages.AdminMessagesMiddleware', 'django.middleware.transaction.TransactionMiddleware']

Traceback: File "/home/mudspring/webapps/osqa_server/lib/python2.5/django/core/handlers/base.py" in get_response
  83.                     request.path_info) File "/home/mudspring/webapps/osqa_server/lib/python2.5/django/core/urlresolvers.py" in resolve
  218.                     sub_match = pattern.resolve(new_path) File "/home/mudspring/webapps/osqa_server/lib/python2.5/django/core/urlresolvers.py" in resolve
  216.             for pattern in self.url_patterns: File "/home/mudspring/webapps/osqa_server/lib/python2.5/django/core/urlresolvers.py" in _get_url_patterns
  245.         patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/mudspring/webapps/osqa_server/lib/python2.5/django/core/urlresolvers.py" in _get_urlconf_module
  240.             self._urlconf_module = import_module(self.urlconf_name) File "/home/mudspring/webapps/osqa_server/lib/python2.5/django/utils/importlib.py" in import_module
  35.     __import__(name) File "/home/mudspring/webapps/osqa_server/osqa/forum/urls.py" in <module>
  1. import startup File "/home/mudspring/webapps/osqa_server/osqa/forum/startup.py" in <module>
  13. import forum.registry File "/home/mudspring/webapps/osqa_server/osqa/forum/registry.py" in <module>
  5. from django.template import get_templatetags_modules

Exception Type: ImportError at / Exception Value: cannot import name get_templatetags_modulesget_templatetags_modules

What's the fix for this? >_<

asked 02 Apr '11, 07:38

Randell's gravatar image

Randell
2.0k479376
accept rate: 28%


I know the error, its a small backward imcompability introduced recently. Either you upgrade django to 1.2, or, as quick qorkaround before the next release, you can edit the file under forum/registry.py and remove or comment between and including:

from django.template import get_templatetags_modules
...
    django_template_tags.append(m.__name__)
link

answered 02 Apr '11, 13:47

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

We have this fixed in trunk now, there was a fix in another branch that never made its way back to the trunk. We'll probably spin out another release Monday or Tuesday so that we are compatible with Django 1.1 again.

(02 Apr '11, 19:29) matt ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37
×12

Asked: 02 Apr '11, 07:38

Seen: 473 times

Last updated: 02 Apr '11, 19:29

powered by OSQA