On ven, 2010-12-03 at 13:25 -0800, Chris wrote:
> Hi,
>
> I have a (one folder) PyInstaller build script thats pretty much
> working. Its built from a Django app as per the instructions on the
> wiki.
>
> I'm having a problem using a template that has a custom template tag
> library. I get the following error from Django:
>
> 'apps' is not a valid tag library: Could not load template library
> from django.templatetags.apps, No module named
> django.templatetags.apps
>
> when running {% load apps %} in the template.
>
> It works locally, using runserver.
>
> Django uses this machinery to load the template tags when its first
> started:
>
> from django.conf import settings
> from django.utils import importlib
>
> for a in settings.INSTALLED_APPS:
> try:
> __path__.extend(importlib.import_module('.templatetags',
> a).__path__)
> except ImportError:
> pass
>
> Is there something specific I need to do to make this work?
>
> In my bootstrap script I've imported the tag library, so the Analysis
> should pick it up.
>
> Any advice you can offer would be greatly appreciated.
It would be extremely helpful if you could prepare a small django
application that exhibits this problem, pack the source tree and send it
to this mailing-list. This way it would be easier for me to analyze what
it is going on and fix PyInstaller's import hook for django.
Thanks!
--
Giovanni Bajo :: Develer S.r.l.
[email protected] :: http://www.develer.com
Blog: http://giovanni.bajo.it
Last post: Compile-time Function Execution in D
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.