Re: UnicodeEncodeError: 'charmap' codec can't encode character u'\u0218' in position 0: character maps to

2016-03-25 Thread Zoltán Bege
Thank you, Michal On Fri, Mar 25, 2016 at 11:47 AM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Fri, Mar 25, 2016 at 02:12:27AM -0700, Zoltán Bege wrote: > > Hi, > > > > I have a Django application where I have to update some personal data in > a &

UnicodeEncodeError: 'charmap' codec can't encode character u'\u0218' in position 0: character maps to

2016-03-25 Thread Zoltán Bege
Hi, I have a Django application where I have to update some personal data in a Firebird 2.5 DB with cp1250 encoding. Yesterday I got some Internal Server Error while updating a person's first or last name when using Ș, ș, Ț, ț characters. The error can be easily reproduced in python (2.7 and 3

Re: Problem with for and if

2015-01-05 Thread Zoltán Bege
You should use the string's count method: zmienna.count(szukana) See help("string.count") On Monday, January 5, 2015 4:32:06 PM UTC+2, Dariusz Mysior wrote: > > I want search count of szukana in zmienna but code below counting all 12 > letters from "traktorzysta" word > > szukana="t" > zmienna

Re: ajax get json not receive data from django

2013-05-16 Thread Zoltán Bege
Hi, You should change the mimetype on HttpRequest from mimetype="application/ javascript;charset=UTF-8" to mimetype="application/json; charset=utf-8". On Wednesday, May 15, 2013 7:54:43 PM UTC+3, Hai Nguyen wrote: > > Hello All, > > I use django 1.4 run on ubutu. > I'm trying to use jquery/ajax

Re: ajax get json not receive data from django

2013-05-16 Thread Zoltán Bege
I mean HttpResponse. Sorry! :) Hi, > > You should change the mimetype on HttpResponse from mimetype="application/ > javascript;charset=UTF-8" to mimetype="application/json; charset=utf-8". > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Extend Django UserProfile

2012-11-01 Thread Zoltán Bege
Thank you for your suggestion! I already done that, the problem is resolved for the moment using "through" for m2m model. On Thursday, November 1, 2012 2:40:37 PM UTC+2, Nicolas Emiliani wrote: > > > > On Thu, Nov 1, 2012 at 6:29 AM, Zoltán Bege > > wrote: > >

Re: Extend Django UserProfile

2012-11-01 Thread Zoltán Bege
On Thursday, November 1, 2012 11:29:38 AM UTC+2, Zoltán Bege wrote: > > I created an accounts app in my project, I 'd like to extend users to be > able to work with one or more partners. I need to define one or more admin > user for every partner. > > This is my acco

Extend Django UserProfile

2012-11-01 Thread Zoltán Bege
n self.partners def create_user_profile(sender, instance, created, **kwargs): if created: UserProfile.objects.create(user = instance) post_save.connect(create_user_profile, sender = User) Thanks! -- Zoltán Bege -- You received this message because you are subscribed to th