Woops... I used apache2 and django via cgi...
This works fine so far. Until now. locale.getdefaultlocale() returns (None, None) Don't know why. A restart of apache doesn't change anything. So i get a django traceback: --------------------------------------------------------------------- Traceback (most recent call last): File "./django/template/__init__.py" in render_node 754. result = node.render(context) File "./django/template/__init__.py" in render 899. dict = func(*args) File "./django/contrib/admin/templatetags/admin_list.py" in result_list 206. 'results': list(results(cl))} File "./django/contrib/admin/templatetags/admin_list.py" in results 201. yield list(items_for_result(cl,res)) File "./django/contrib/admin/templatetags/admin_list.py" in items_for_result 163. result_repr = capfirst(dateformat.format(field_val, datetime_format)) File "./django/utils/dateformat.py" in format 258. df = DateFormat(value) File "./django/utils/dateformat.py" in __init__ 114. self.timezone = LocalTimezone(dt) File "./django/utils/tzinfo.py" in __init__ 34. self._tzname = self.tzname(dt) File "./django/utils/tzinfo.py" in tzname 53. return smart_unicode(time.tzname[self._isdst(dt)], DEFAULT_ENCODING) File "./django/utils/encoding.py" in smart_unicode 25. return force_unicode(s, encoding, strings_only, errors) File "./django/utils/encoding.py" in force_unicode 42. s = unicode(s, encoding, errors) TypeError at /_admin/PyLucid/page/ unicode() argument 2 must be string, not None --------------------------------------------------------------------- This is "normal" because of this line in ./django/utils/tzinfo.py : --------------------------------------------------------------------- DEFAULT_ENCODING = locale.getdefaultlocale()[1] --------------------------------------------------------------------- So, DEFAULT_ENCODING is None... In the Python shell, everything is ok: --------------------------------------------------------------------- >>> import locale >>> print locale.getdefaultlocale() ('de_DE', 'UTF8') --------------------------------------------------------------------- Somebody a idea? -- Mfg. Jens Diemer ---- A django powered CMS: http://www.pylucid.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---