Re: UnicodeError in admin in latest django

2007-11-19 Thread Sengtha


On Nov 15, 7:57 am, Piru <[EMAIL PROTECTED]> wrote:
> Hi all,
> it's my first post here;)
> I have same issue  -
>
> ...
>
> UnicodeEncodeError
> 'ascii' codec can't encode character u'\u017c' in position 4: ordinal
> not in range(128)
>
> Exception Type: UnicodeEncodeError
> Exception Value:'ascii' codec can't encode character u'\u017c' in
> position 4: ordinal not in range(128)
> Exception Location: /django/utils/encoding.py in force_unicode, line
> 40
> Python Version: 2.4.4
> Unicode error hint
>
> The string that could not be encoded/decoded was: Pokaż swój
> Template error
>
> In template /django/contrib/admin/templates/admin/change_form.html,
> error at line 14
> Caught an exception while rendering: 'ascii' codec can't encode
> character u'\u017c' in position 4: ordinal not in range(128)
>
> ...
>
> I don't know how to handle this thing...

Have you tried to use

def __unicode__(self):

instead of

def __str__(self):

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to use Django session without browser cookies support

2007-03-12 Thread Sengtha

I am currently working on one project which needs to view page on
browser that doesn't support cookies.
By what I know, all Django sessions are based on browser cookies. And
Django sessions are save in django_session table. I wonder there is
any way to implement Django session like PHP session.use_trans_sid
without relying on client's browser cookies.

Please help

Thanks


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---