All right. I'm now down to one (different) error with smartypants.

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/blog/
Django Version: 1.1.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.auth',
'django.contrib.comments',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sitemaps',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.redirects',
'south',
'compress',
'participationgraphs',
'typogrify',
'flother.apps.blog',
'flother.apps.comments',
'flother.apps.photos',
'flother.apps.places',
'flother.apps.files',
'flother.apps.contact',
'flother.apps.search']
Installed Middleware:
('django.middleware.http.ConditionalGetMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.gzip.GZipMiddleware',
'staticgenerator.middleware.StaticGeneratorMiddleware',
'flother.utils.middleware.http.SetRemoteAddrFromForwardedFor')


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: 'function' 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 %}


  6 :


  7 : {% block headsupplement %}<link href="http://
feeds.feedburner.com/flother" rel="alternate" type="application/rss
+xml" />{% endblock %}


  8 :


  9 : {% block content %}


  10 :  <div id="entry">


  11 :          {% if latest_entry.standfirst %}<p
id="standfirst">{{ latest_entry.standfirst|widont|smartypants }}</p>{%
endif %}


  12 :          {{ latest_entry.copy_html|safe }}


  13 :          {% if latest_entry.enable_comments %}{% get_comment_count
for latest_entry as comment_count %}{% endif %}


  14 :          <p id="metadata">Written by
{{ latest_entry.author.first_name|
default:latest_entry.author.username|
title }} on {{ latest_entry.published_at|date }}. {% if
latest_entry.enable_comments %}<a
href="{{ latest_entry.get_absolute_url }}#comments">{% if
comment_count %}{{ comment_count }} comment{{ comment_count|
pluralize }}{% else %}Leave a comment{% endif %}</a>.{% endif %}</p>


  15 :  </div>


Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in
get_response
 92.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/mnt/hgfs/Web/django/flother/apps/blog/views.py" in entry_index
 23.         RequestContext(request))
File "/usr/lib/pymodules/python2.6/django/shortcuts/__init__.py" in
render_to_response
 20.     return HttpResponse(loader.render_to_string(*args,
**kwargs), **httpresponse_kwargs)
File "/usr/lib/pymodules/python2.6/django/template/loader.py" in
render_to_string
 108.     return t.render(context_instance)
File "/usr/lib/pymodules/python2.6/django/template/__init__.py" in
render
 178.         return self.nodelist.render(context)
File "/usr/lib/pymodules/python2.6/django/template/__init__.py" in
render
 779.                 bits.append(self.render_node(node, context))
File "/usr/lib/pymodules/python2.6/django/template/debug.py" in
render_node
 71.             result = node.render(context)
File "/usr/lib/pymodules/python2.6/django/template/loader_tags.py" in
render
 97.         return compiled_parent.render(context)
File "/usr/lib/pymodules/python2.6/django/template/__init__.py" in
render
 178.         return self.nodelist.render(context)
File "/usr/lib/pymodules/python2.6/django/template/__init__.py" in
render
 779.                 bits.append(self.render_node(node, context))
File "/usr/lib/pymodules/python2.6/django/template/debug.py" in
render_node
 71.             result = node.render(context)
File "/usr/lib/pymodules/python2.6/django/template/loader_tags.py" in
render
 24.         result = self.nodelist.render(context)
File "/usr/lib/pymodules/python2.6/django/template/__init__.py" in
render
 779.                 bits.append(self.render_node(node, context))
File "/usr/lib/pymodules/python2.6/django/template/debug.py" in
render_node
 71.             result = node.render(context)
File "/usr/lib/pymodules/python2.6/django/template/loader_tags.py" in
render
 24.         result = self.nodelist.render(context)
File "/usr/lib/pymodules/python2.6/django/template/__init__.py" in
render
 779.                 bits.append(self.render_node(node, context))
File "/usr/lib/pymodules/python2.6/django/template/debug.py" in
render_node
 81.             raise wrapped

Exception Type: TemplateSyntaxError at /blog/
Exception Value: Caught an exception while rendering: 'function'
object has no attribute 'smartypants'

Can anyone shed some light on this?

On Apr 15, 4:28 pm, HiddenWolf <hbrugm...@gmail.com> wrote:
> On Apr 15, 3:54 pm, "bax...@gretschpages.com" <mail.bax...@gmail.com>
> wrote:
>
> > On Apr 14, 11:08 pm, HiddenWolf <hbrugm...@gmail.com> wrote:
>
> > > TemplateSyntaxError at /blog/
>
> > > Caught an exception while rendering: 'module' object has no attribute
> > > 'smartyPants'
>
> > I think you want smartypants, not smartyPants
>
> I've tried that too. Doesn't help.

-- 
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.

Reply via email to