
django-photologue - issue #78
Can't import photologue from custom template tag libraries
What steps will reproduce the problem? 1. create a custom template tag library (in an arbitrary app) 2. in the tag lib, try "from photologue.models import Photo" 3. try to use the tag lib in a template
What is the expected output? What do you see instead? Should import without errors. Instead throws a 500 page with "cannot import name models".
What version of the product are you using? On what operating system? Trunk revision 349 on Ubuntu 8.04 with Python 2.5.
Please provide any additional information below. This happens because the template tag library and the app have a name clash. See http://code.djangoproject.com/ticket/9413
Comment #1
Posted on Oct 23, 2008 by Happy GiraffeRenamed tags file to "photologue_tags.py" in r350.
Status: Fixed
Labels:
Type-Defect
Priority-Medium