Database and all project in UTF. Using unicode branch.

in template (after generic view):

{% for entry in latest %}
   <p>Posted by {{ entry.author }} - {{ entry.pub_date|date:"j N Y,
H:i" }}</p>
 {% endfor %}

Have exception:

Traceback (most recent call last):
File "c:\web\Python24\lib\site-packages\django\template\__init__.py"
in render_node
  757. result = node.render(context)
File "c:\web\Python24\lib\site-packages\django\template
\defaulttags.py" in render
  136. nodelist.append(node.render(context))
File "c:\web\Python24\lib\site-packages\django\template\__init__.py"
in render
  793. return self.filter_expression.resolve(context)
File "c:\web\Python24\lib\site-packages\django\template\__init__.py"
in resolve
  606. obj = func(obj, *arg_vals)
File "c:\web\Python24\lib\site-packages\django\template
\defaultfilters.py" in date
  417. return format(value, arg)
File "c:\web\Python24\lib\site-packages\django\utils\dateformat.py" in
format
  258. df = DateFormat(value)
File "c:\web\Python24\lib\site-packages\django\utils\dateformat.py" in
__init__
  114. self.timezone = LocalTimezone(dt)
File "c:\web\Python24\lib\site-packages\django\utils\tzinfo.py" in
__init__
  28. self._tzname = unicode(time.tzname[self._isdst(dt)])

  UnicodeDecodeError at /en/blog/
  'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in
range(128)

In settings:
TIME_ZONE = 'Europe/Kiev'

If i use template without date filter like this:
<p>Posted by {{ entry.author }} - {{ entry.pub_date }}</p>
i have no bug

thanks for any 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-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to