Hi,
I'm trying to run Satchmo on Django 1.10. I have removed from the
app_plugins.templatetags.app_plugins
module the deprecated import of SortedDict. Could this import statement
be cached by the Django cache backend ?
I have replaced the only occurence of SortedDict by
collections.OrderedDict in app_plugins.library.py.
Is there something obvious I'm missing ?
Thanks,
Etienne
Environment:
Request Method: GET
Request URL: http://localhost:9000/
Django Version: 1.10
Python Version: 2.7.9
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'django.contrib.sessions',
'django.contrib.sitemaps',
'satchmo_store.shop',
'satchmo_store',
'sorl.thumbnail',
'keyedcache',
'livesettings',
'l10n',
'satchmo_store.contact',
'tax',
'tax.modules.no',
'tax.modules.area',
'tax.modules.percent',
'shipping',
'product',
'payment',
'payment.modules.dummy',
'satchmo_ext.satchmo_toolbar',
'satchmo_utils',
'app_plugins')
Installed Middleware:
['django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware']
Traceback:
File "/home/erob/ncvs/django/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/home/erob/ncvs/django/django/core/handlers/base.py" in _get_response
187. response =
self.process_exception_by_middleware(e, request)
File "/home/erob/ncvs/django/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File
"/home/erob/src/livestore/trunk/lib/satchmo_store/shop/views/home.py" in
home
42. return render(request, template, ctx)
File "/home/erob/ncvs/django/django/shortcuts.py" in render
30. content = loader.render_to_string(template_name, context,
request, using=using)
File "/home/erob/ncvs/django/django/template/loader.py" in render_to_string
67. template = get_template(template_name, using=using)
File "/home/erob/ncvs/django/django/template/loader.py" in get_template
18. engines = _engine_list(using)
File "/home/erob/ncvs/django/django/template/loader.py" in _engine_list
72. return engines.all() if using is None else [engines[using]]
File "/home/erob/ncvs/django/django/template/utils.py" in all
89. return [self[alias] for alias in self]
File "/home/erob/ncvs/django/django/template/utils.py" in __getitem__
80. engine = engine_cls(params)
File "/home/erob/ncvs/django/django/template/backends/django.py" in __init__
30. options['libraries'] =
self.get_templatetag_libraries(libraries)
File "/home/erob/ncvs/django/django/template/backends/django.py" in
get_templatetag_libraries
48. libraries = get_installed_libraries()
File "/home/erob/ncvs/django/django/template/backends/django.py" in
get_installed_libraries
113. for name in get_package_libraries(pkg):
File "/home/erob/ncvs/django/django/template/backends/django.py" in
get_package_libraries
130. "trying to load '%s': %s" % (entry[1], e)
Exception Type: InvalidTemplateLibrary at /
Exception Value: Invalid template library specified. ImportError raised
when trying to load 'app_plugins.templatetags.app_plugins': cannot
import name SortedDict
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ceb9687-a22f-4852-8976-90aeabf5cc0a%40yandex.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment