Have you tried to run the actual code in django shell? Have you imported it corectly (paste some code from where the exception gets thrown.
/J On Thursday, April 15, 2010, HiddenWolf <hbrugm...@gmail.com> wrote: > Hi all, > > I'm trying to get a blog app working, and I keep running into the > weirdest error. > > Both typogrify and smartypants.py are on my django-path and import > fine from a shell. I get a similar error when trying to import and use > smartypants in a model, so it might very well be my install. I just > can't figure out why things are broken. > > Does anyone have some tips? > > > Thank you, > > HiddenWolf > ------------- > TemplateSyntaxError at /blog/ > > Caught an exception while rendering: 'module' object has no attribute > 'smartyPants' > > Original Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/django/template/debug.py", line > 71, in render_node > result = node.render(context) > File "/usr/lib/pymodules/python2.6/django/template/debug.py", line > 87, in render > output = force_unicode(self.filter_expression.resolve(context)) > File "/usr/lib/pymodules/python2.6/django/template/__init__.py", > line 572, in resolve > new_obj = func(obj, *arg_vals) > File "/mnt/hgfs/Web/django/typogrify/templatetags/typogrify.py", > line 180, in smartypants > output = smartypants.smartyPants(text) > AttributeError: 'module' object has no attribute 'smartyPants' > > Request Method: GET > Request URL: http://127.0.0.1:8000/blog/ > Exception Type: TemplateSyntaxError > Exception Value: > > Caught an exception while rendering: 'module' object has no attribute > 'smartyPants' > > Original Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/django/template/debug.py", line > 71, in render_node > result = node.render(context) > File "/usr/lib/pymodules/python2.6/django/template/debug.py", line > 87, in render > output = force_unicode(self.filter_expression.resolve(context)) > File "/usr/lib/pymodules/python2.6/django/template/__init__.py", > line 572, in resolve > new_obj = func(obj, *arg_vals) > File "/mnt/hgfs/Web/django/typogrify/templatetags/typogrify.py", > line 180, in smartypants > output = smartypants.smartyPants(text) > AttributeError: 'module' object has no attribute 'smartyPants' > > Exception Location: /usr/lib/pymodules/python2.6/django/template/ > debug.py in render_node, line 81 > Python Executable: /usr/bin/python > Python Version: 2.6.5 > Python Path: ['/usr/bin', '/usr/local/lib/python2.6/dist-packages/ > staticgenerator-1.4.1-py2.6.egg', '/usr/local/lib/python2.6/dist- > packages/South-0.7-py2.6.egg', '/mnt/hgfs/Web/django', '/usr/lib/ > python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib- > tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/ > usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/ > PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/ > python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/ > pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist- > packages'] > Server time: Thu, 15 Apr 2010 05:58:34 +0200 > Template error > > In template /mnt/hgfs/Web/django/flother/apps/blog/templates/blog/ > entry_index.html, error at line 5 > Caught an exception while rendering: 'module' object has no attribute > 'smartyPants' > 1 {% extends "base.html" %} > 2 {% load comments typogrify %} > 3 > 4 {% block headtitle %}Blog{% endblock %} > 5 {% block pagetitle %}<a > href="{{ latest_entry.get_absolute_url }}">{{ latest_entry.title| > widont|smartypants }}</a>{% endblock %} > ----------- > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.