Hello,
I sometime faced this issue when the data were not properly formatted in the
database.
I mean, there was stored in the database through another system that did not
handle correctly charset conversions.
Sometime one stores unicodes or iso-8859-xx and says it is utf-8 or whatever.
What could possibly help us is to get the part of code where you extract the
data from the form and store them in the model.
Regards,
Xavier.
Le 15 avr. 2010 à 17:54, zayatzz a écrit :
> Hello
>
> I recieve this kind of error message when in admin:
>
> Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
> \xc3\xbcpsetatud stressivaba sea parim t\xc3\xbckk', 23, 24, 'ordinal
> not in range(128)')
>
> The text should actually be "Madalal remperatuuril küpsetatud
> stressivaba sea parim tükk".
>
> The model, that saves this information is:
> class Retsept(models.Model):
> name = models.CharField(max_length=100, verbose_name=_("Name"),
> blank=False, null=False)
> and other fields....
>
>
> And the form for it is:
> class RetseptForm(ModelForm):
> about = forms.CharField(widget=TinyMCE(attrs={'style': 'width:370px',
> 'rows': 15, 'theme':"simple"}), label = _("text here"),
> required=False)
> tags = TagField(label = _("tags"),
> widget=TagAutocomplete(attrs={'class':'required'}))
> name = forms.CharField(label = _("Name"),
> widget=forms.TextInput(attrs={'class':'required'}))
> class Meta:
> model = Retsept
> fields = ('name', 'about', 'image', 'tags',)
> widgets = {
> 'name': TextInput(attrs={'class': 'required' })
> }
>
> Can anyone tell me whats wrong with it?
>
> Alan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.