id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 6430 Error when loading templates from Python eggs Juan Manuel Caicedo nobody " The template loader for using templates included in Python eggs (`django.template.loaders.eggs.load_template_source`) has a bug that raises an exception when a template, thus the loader never finds an existent template and always raises the `TemplateDoesNotExist` exception. The bug was introduced in changeset [5609] (see the [http://code.djangoproject.com/changeset/5609#file97 diff]), when the decode function is called on the tuple that should be returned, not on the template string that is returned by the resource_string function. If the template exists in a egg, instead of return it, an exception is raised with the following message: {{{ 'tuple' object has no attribute 'decode' }}} I attach here a patch that calls the function correctly. " closed Template system dev fixed eggs Ready for checkin 1 0 0 0 0 0