Http request with multiple files is not able to read by django server

2014-04-25 Thread kousik chowdhury
I am trying to send multiple files(images and audio) from an android device using `MultipartEntityBuilder` (java) with http request. Everytime request including files reaches server and is working as expected but sometimes(10%) django server is not able to read the content of the request. After

RE: Http request with multiple files is not able to read by django server

2014-04-25 Thread Ilya Kazakevich
Hello, There may be some web-proxy between client and server that limits request size or time. Server may limit it as well. * Remove all proxies between client and server * Try to use different client (browser for example) * Check your server configuration for request size and timeout. Ilya K

Re: Http request with multiple files is not able to read by django server

2014-04-25 Thread Erik Cederstrand
Den 25/04/2014 kl. 14.39 skrev kousik chowdhury : > After going through all the links related to this problem, I come to know > that this problem may happen because of the **broken request** That is if > someone cancelled the request in between. > > As my request is an `AsyncTask` to the reques

Re: Interesting Django project folder structure.

2014-04-25 Thread Damián Pérez
Hello, I read that the folder *apps* itsn't recomended. You can see this structure: https://github.com/damianpv/skeleton_django Best regards, On Thursday, April 24, 2014 11:41:54 AM UTC-5, Perry Arellano-Jones wrote: > > It's mostly preference, use what suits you. I prefer having all of my

Re: Django

2014-04-25 Thread Lee
In case you dont see my email, I copy my reply here too: Hi, Your problem is in the results view function. I'm not sure what version of the tutorial you are following, but assuming you are using Django 1.6, the following: def results(request, poll_id): poll = get_object_or_404(Poll, poll_

Django explicit `order_by` by ForeignKey field

2014-04-25 Thread alTus
Hi. So I have some small models: class Group(models.Model): name = models.CharField() class Meta: ordering = ('name',) class Entity(models.Model): name = models.CharField() group = models.ForeignKey(Group, null=True) Now I want to perform a really simple query like t

Re: Django explicit `order_by` by ForeignKey field

2014-04-25 Thread Simon Charette
The issue was referenced in #19195and it was suggested we add the ability to order by field name and not only by attribute name. I suggest you open a ticket for this and add a reference to it in #19195 .

Re: Django explicit `order_by` by ForeignKey field

2014-04-25 Thread Simon Charette
Actually the FieldError is not raised anymore in Django 1.7 (and master) and issuing a .order_by('group_id') is the equivalent of .order_by('group') which respect related model ordering if defined. I would argue we should seize the opportunity to provide a way of opting out of this default beha