I found a UnicodeError with newforms.form_for_model() and LANGUAGE_CODE = 'de':
Traceback (most recent call last): File "/home/jens/workspace/PyLucid0.8(django)/PyLucid/dev/ local_test2.py", line 29, in <module> html_code = form.as_p() File "/home/jens/workspace/PyLucid0.8(django)/django/newforms/ forms.py", line 162, in as_p return self._html_output(u'<p>%(label)s %(field)s%(help_text)s</ p>', u'<p>%s</p>', '</p>', u' %s', True) File "/home/jens/workspace/PyLucid0.8(django)/django/newforms/ forms.py", line 136, in _html_output help_text = help_text_html % field.help_text UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 86: ordinal not in range(128) Some local vars from the Web-Traceback: field: <django.newforms.fields.CharField object at 0x8670f8c> label: u'<label for="id_password">Passwort:</label>' Here a small testscript to reproduce the error (You should use your own settings file): ======================================================== from django.core import management os.environ["DJANGO_SETTINGS_MODULE"] = "PyLucid.settings" from PyLucid import settings settings.DATABASE_ENGINE = "sqlite3" settings.DATABASE_NAME = ":memory:" settings.LANGUAGE_CODE = 'de' print "init django, create tables...", management.setup_environ(settings) # init django management.syncdb(verbosity=0, interactive=False) # Create Tables print "OK\n" #______________________________________________________________________________ # Test: from django.contrib.auth.models import User from django import newforms as forms UserForm = forms.form_for_model(User) form = UserForm() html_code = form.as_p() print html_code ======================================================== (Sorry, if this is a double posting.) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---