google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Can't import photologue from custom template tag libraries #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by akaih...@gmail.com on 21 Oct 2008 at 4:37

GoogleCodeExporter commented 9 years ago
Renamed tags file to "photologue_tags.py" in r350.

Original comment by justin.d...@gmail.com on 23 Oct 2008 at 5:12