On 6 Dec 2010, at 00:05, Giovanni Bajo wrote:
It would be extremely helpful if you could prepare a small djangoapplication 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 whatit is going on and fix PyInstaller's import hook for django.
Thanks for your reply.I've attached a simple test project (hopefully Google Groups doesn't strip it). You'll need Django installed, its not in the archive.
Expected result:HTML page with the text "Hello World" -- this is what you get if you run it through the runserver normally.
After using PyInstaller and running it, you get:'custom_template_library' is not a valid tag library: Could not load template library from django.templatetags.custom_template_library, No module named django.templatetags.custom_template_library
There are a few places in Django where it does weird imports. This is one (it overrides __path__ for django.template.) but there is also custom management commands which are resolved at runtime by looking in the management/commands/ folder for any files that end in ".py" and then imports them.
If there is anything I can to help please let me know. Cheers, Chris
test.tar.gz
Description: GNU Zip compressed data
-- 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.
