Issue #5 resolved

Support for new loader style of Django 1.2/1.3

Hynek Cernoch
created an issue

Using new template loaders in settings.py with an old version of this package causes an exception which is very difficult for the user to be explained correctly.

An easily verifiable version number should be added to be possible to test it from satchmo (satchmo_check).

Exception Type: TemplateSyntaxError

Exception Value: Caught Exception while rendering: Found a compiled template that is incompatible with the deprecated django.template.loaders.find_template_source function.

e.g. if it is \ TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', ...)

Some detailed example is in [[http://groups.google.com/group/satchmo-users/browse_thread/thread/3daadd930e5880b7/|group satchmo-users, the post exactly before Bruce's]]. Nobody explained it.

Old loaders are funfcional, but make DeprecationWarning with Django 1.3 now (e.g. with 'django.template.loaders.filesystem.load_template_source' in settings.py)

Django 1.3 RC 1 was released last week. Final version can be released maybe next week.

Comments (10)

  1. Hynek Cernoch reporter

    This issue has been reported again in the thread TemplateSyntaxError.

    I realized that it have been not fixed sufficiently yet if a developer configured ordering of plugins by using tables app_plugins_*.

    Fix is here. https://bitbucket.org/hynekcer/django-caching-app-plugins/changeset/ea929b7cc2aa

    The older unaccepted patch is not important because it was uncomfortable. (not D.R.Y.) Simple version and changeset id is hopefully enough for most installations.

  2. Hynek Cernoch reporter

    This issue has been reported again in the thread TemplateSyntaxError.

    I realized that it have been not fixed sufficiently yet if a developer configured ordering of plugins by using tables app_plugins_*.

    Fix is here. https://bitbucket.org/hynekcer/django-caching-app-plugins/changeset/0f0a9dea61b0

    The older unaccepted patch is not important because it was uncomfortable. (not D.R.Y.) Simple version and changeset id is hopefully enough for most installations.

  3. Log in to comment