could i set cookie with http 204 (no content) response?

2010-07-19 Thread ihome
Hi, I have one question regarding the set of cookie when we return http 204 code in the http response. If I set the response status code as 204 and also set the cookie in the response header, will the cookie be set on the client side or will this fail and get ignored by the browsers? Any

run django on multicore machine

2009-07-23 Thread ihome
Has django been designed to take advantage of multicore machine? Is there a way to boost the performance of a django server on multicore machine? Any thoughts? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

deploy django apps to multiple servers

2009-04-13 Thread ihome
Hi, Has anyone had the experience to deploy django apps to multiple servers to increase serving capacity? Is there any references or best practice documents we could refer to? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

help with form's cleaned_data

2009-03-28 Thread ihome
Hi, My form always gets is_valid() as False. Some validation is wrong. Is there any error message I could dump from form or form.cleaned_data to understand why is_valid() is always false? thanks. --~--~-~--~~~---~--~~ You received this message because you are

precision for float numbers in templates rendering

2009-03-20 Thread ihome
Hi, I have to load lots of float numbers into my html pages in list or list of list format. Even though django template allows me to use a filter to control the precision of float numbers it is still a pain. So are the use of "%.2f" each to dump the float numbers. Does anyone know whether

how to iterate list of list using template language

2009-03-18 Thread ihome
hi, i pass in one list of list into my template and want to iterate the list in template language. for example, list1 = [ [1,2], [3,4] ] initially i thought of using: {% for a in list1 %} a[0]a[1] {% endfor %} but i received this error: Could not parse the remainder: '[0]' from 'a[0]' any

GET vs POST?

2009-03-14 Thread ihome
Hi, I defined a form to load data from HttpRequest in views.py. For the same function, sometimes, I need to pass a POST request while some times I need to pass in a GET request. For POST, I used MyForm(request.POST) to load the data and it works well. For GET method, MyForm(request.POST)

precision for float values in template rendering

2009-03-14 Thread ihome
is there an easy way to control the precision for float values? for example, i have this in my template: where float p = 0.1234123413 but i only want to show p with 3 digits after dot like 0.123. is there a predefined way to control the precision in the rendering of template instead of having

weird behaviour of forms in render_to_response

2009-03-13 Thread ihome
Hi, I am using the latest django development version and have some problem with the render_to_response to render a template. Here is a short snippet: return render_to_response('index.html', { 'form': form, 'ops' : ops, }) form comes from a newly defined data form