Re: Simple subprocess help

2016-03-25 Thread Mike Dewhirst
On 26/03/2016 1:05 AM, Joshua Valdez wrote: I'm very new to django Sorry I didn't pay attention to this part of your question ... To amplfy my response, this is the sort of thing I would do in the save method of the model: from wherever import run_pipeline class Query(models.Model):

Re: Simple subprocess help

2016-03-25 Thread Mike Dewhirst
On 26/03/2016 1:05 AM, Joshua Valdez wrote: Okay, so I have figured out that the subprocess is the module that I want to use in this context and I have tried implementing some simple code based on the documentation but I am getting an |ExceptionType:OSErrorExceptionValue:[Errno2]Nosuch file or

django python devs hang out @HanaHaus Palo Alto CA

2016-03-25 Thread Manfred Neustifter
any django python devs wanna hang out @HanaHaus Palo Alto CA shoot us a msg -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: How displaying text as code?

2016-03-25 Thread Bill Freeman
Consider the tag. On Fri, Mar 25, 2016 at 4:47 PM, Seti Volkylany wrote: > > I had text in database on TextField. I am using this field in my template > applying tag *linebreaksbr* but text displaying simple plain. > > In console I have next result: > > Out[60]: 'class

How displaying text as code?

2016-03-25 Thread Seti Volkylany
I had text in database on TextField. I am using this field in my template applying tag *linebreaksbr* but text displaying simple plain. In console I have next result: Out[60]: 'class UpdateAccountInfo(LoginRequiredMixin, View):\n"""\n View for update information about account of user\n

Simple subprocess help

2016-03-25 Thread Joshua Valdez
Okay, so I have figured out that the subprocess is the module that I want to use in this context and I have tried implementing some simple code based on the documentation but I am getting an Exception Type: OSErrorException Value: [Errno 2] No such file or directoryException Location:

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 > > Firebird 2.5 DB with cp1250

Re: Mobile eCommerce with Django

2016-03-25 Thread René Fleschenberg
Hey Jordan, On Wednesday 23 March 2016 17:03:59 Jordan Koncz wrote: > I'm now looking at the option of Django Shop, which [according to the > documentation](http://django-shop.readthedocs.org/en/latest/reference/seri > alizers.html) seems like it would support using all of its functionality > via

Re: UnicodeEncodeError: 'ascii' codec can't encode characters in position,,, on handling serialized post data

2016-03-25 Thread Wu Jakey
you need to know what diffrent between decode() & encode(): decode(param) param: any coding you used now , this func make any coding to unicode encode(param) param: any coding you want to use , this func make unicode to any coding now , your unquote(u'Kroati%C3%AB')`s coding is unicode

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

2016-03-25 Thread Michal Petrucha
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 > 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 Ș, ș,

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

Re: UnicodeEncodeError: 'ascii' codec can't encode characters in position,,, on handling serialized post data

2016-03-25 Thread Stephen J. Butler
What happens if you don't pass POST['f'] through unquote first? I don't believe that should be necessary. return QueryDict(request.POST["f"]) On Thu, Mar 24, 2016 at 2:57 PM, Paul Bormans wrote: > I have been puzzled for some time now on a UnicodeEncodeError exception >