2009-7-2
| 23:33 | vIkSiT | I'm facing an error rendering a template with some non ascii characters |
| 23:34 | vIkSiT | |
| 23:34 | vIkSiT | # |
| 23:34 | vIkSiT | Caught an exception while rendering: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128) |
| 23:34 | vIkSiT | has anyone faced this before/know how to resolve it? |
| 23:43 | pm2 | rozwell: it looks like the file uploads OK, but the server hangs before the request is completed, so the client doesn't know that it was successful |
| 23:43 | SmileyChris | vIkSiT: fix your template tag to use unicode instead of str |
| 23:44 | vIkSiT | oh damn |
| 23:44 | vIkSiT | somehow I completely missed that part of the stack trace! |
| 23:45 | vIkSiT | thanks SmileyChris :) |
| 23:47 | superdmp | I have pasted a very short and simple inclusion tag at http://dpaste.com/62697/ |
| 23:47 | Jeromy_ | Does anyone know if mysql works under jython+django? |
| 23:47 | superdmp | is anyone able to explain how it might return empty data as 'node'? |
| 23:48 | benc1 | I want to look at django_session instance in the shell. How do I import it? |
| 23:48 | superdmp | I would not expect it to return anything empty under any circumstances |
| 23:49 | SmileyChris | superdmp: shouldn't it be changed to always return a dict? |
| 23:49 | SmileyChris | benc1: from django.contrib.session.models import Session |
| 23:49 | superdmp | I am not sure what you mean SmileyChris |
| 23:50 | superdmp | sometimes I don't want it to return anything |
| 23:50 | chrishartim | is it possible to specify templates in in urls.py without actually writing views? |
| 23:50 | SmileyChris | superdmp: it's an inclusion tag - it always renders the template afaik |
| 23:50 | SmileyChris | chrishartim: you can use the generic views |
| 23:50 | superdmp | oh, so even if there's nothing to return it will return... nothing! |
| 23:51 | superdmp | that's what must be happening |
| 23:51 | chrishartim | SmileyChris: thanks |
| 23:51 | benc1 | SmileyChris: ImportError: No module named session.models |
| 23:51 | SmileyChris | benc1: sessions, sorry |
| 23:52 | multigl | is anyone familiar with hachoir? when I import anything from any of the hachoir libraries I can't start manage.py runfcgi |
| 23:52 | SmileyChris | benc1: then you'll want to run the get_decoded() method of the instance |
| 23:53 | superdmp | SmileyChris: I worked around it by doing a check {{ if data }} in the template |
| 23:53 | superdmp | thanks for your help |
| 23:55 | benc1 | SmileyChris: what is get_decoded() ? |
| 23:55 | SmileyChris | benc1: it unpickles the session dictionary |
| 23:56 | Jeromy_ | getting "Error loading MySQLdb module: No module named MySQLdb" when trying to use django with jython, I guess mysql is not an option w/ jython |
| 23:57 | benc1 | SmileyChris: does get_decoded() for every model or just Session? |
| 23:57 | SmileyChris | benc1: just session - it's a model method |
| 23:58 | jim___ | Can someone spare some time to help me with using forms.MultipleChoiceField with widget forms.CheckboxSelectMultiple |
| 23:59 | benc1 | SmileyChris: how can I see all the attributes of a model instance without knowing what they are? |
| 23:59 | benc1 | SmileyChris: is it possible? |
Page 18 of 18
← Previous
(1,739 total)