Something is ticking.

Django: TemplateSyntaxError at /admin/foo/bar/30/ Caught an exception while rendering: ‘ascii’ codec can’t encode character u’\u201d’ in position 3: ordinal not in range(128)

I recently ran into this error with an old Django site.
TemplateSyntaxError at /admin/foo/bar/30/
Caught an exception while rendering: 'ascii' codec can't encode character u'\u201d' in position 3: ordinal not in range(128)
Make sure that you're defining __unicode__ methods on your models and not __str__!
This fixed the problem for me.
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.