#15680: templatetags submodules no longer work ---------------------------+--------------------------- Reporter: EMiller | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.3 Keywords: | Triage Stage: Unreviewed Has patch: 0 | ---------------------------+--------------------------- We're migrating from 1.1 to 1.3 - we have a directory
{{{ myapp/ templatetags/ tagmodule/ __init__.py foo.py }}} This worked fine in 1.1 with {% load tagmodule.foo %} in the template. In 1.3 this breaks. In django.template.base.get_library loops through templatetag_modules pairing modules and libraries and calling import_library. On line 951 of base.py: {{{ app_path, taglib = taglib_module.rsplit('.',1) app_module = import_module(app_path) }}} That rsplit left my "tagmodule" in the app_path, which then failed to import as it was paired with another path. Reorganizing my templatetags under deadline, just wanted to mention it. -- Ticket URL: <http://code.djangoproject.com/ticket/15680> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.