from blog templatetags import blogtags Traceback most recent call last

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
>>> from blog.templatetags import blogtags
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/kron/hg/crafts-mono/../crafts-mono/apps/blog/templatetags/blogtags.py", line 8, in <module>
from blog.models import Category, Post
File "/home/kron/hg/crafts-mono/../crafts-mono/apps/blog/templatetags/blog.py", line 8, in <module>
ImportError: No module named models
>>> from blog.models import Category, Post
>>> Category.objects.all()
[<Category: test-nomer-raz>]
>>> Post.objects.all()
[<Post: hui>, <Post: The doll has turned into imprescriptible part of our every day life>, <Post: Ajajaja Uihasduih>]
>>> import sys
>>> sys.path
['/home/kron/hg/crafts-mono/../crafts-mono/apps', '/home/kron/hg/crafts-mono/apps', '/home/kron/hg/crafts-mono', '/usr/lib/python2.5/site-packages/PyYAML-3.05-py2.5.egg', '/usr/lib/python2.5/site-packages/markdown-1.6-py2.5.egg', '/usr/lib/python2.5/site-packages/pyExcelerator-0.6.0a-py2.5.egg', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/python2.5/site-packages/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']
>>>