Tom Christie
b3e29d9576
Moved content negotiation out of response. Nicer exception handling now.
2012-09-14 22:42:29 +01:00
Jamie Matthews
272c49685c
Better naming for properties on views, requests and responses
...
renderers is now renderer_classes
parsers is now parser_classes
authentication is now authentication_classes
2012-09-11 14:20:35 +01:00
Mjumbe Wawatu Poe
9c007a6197
Fix the tests on 1.3 and HEAD
...
In the latest Django master code, RequestFactory.put behaves fundamentally differently than it did pre-1.5. By default, it expects an octet string as opposed to a dictionary that it will encode like a multipart form. So, for 1.5 and on, we have to be explicit about the multipart type and pre-encode the data. However, pre-1.5 Django expects a dictionary if the content type is multipart. So, the cleanest thing to do is explicitly handle the versions independently.
2012-09-07 19:14:20 -04:00
Mjumbe Wawatu Poe
f729d0eb0b
Fix Django master support.
...
- Explicitly encode PUT data as multipart, as Django 1.5 no longer does so by default in the test client
2012-09-07 18:45:23 -04:00
Tom Christie
8457c87196
Bits of cleanup
2012-09-04 12:02:05 +01:00
Tom Christie
a092a72844
View -> APIView
2012-09-03 16:54:17 +01:00
Tom Christie
7abef9ac3b
Parsers may return raw data, or a DataAndFiles object
2012-09-03 14:28:40 +01:00
Tom Christie
44b5d61203
Fix broken tests
2012-02-25 19:02:26 +00:00
Tom Christie
1cde31c86d
Massive merge
2012-02-25 18:45:17 +00:00
Sébastien Piquemal
21292d31e7
cleaned Request/Response/mixins to have similar interface
2012-02-07 15:38:54 +02:00
Sébastien Piquemal
5bb6301b7f
Response as a subclass of HttpResponse - first draft, not quite there yet.
2012-02-02 18:19:44 +02:00
Sébastien Piquemal
8b72b7bf92
corrected request example
2012-01-24 19:16:41 +02:00
Sébastien Piquemal
ab0b72a7c1
.DATA, .FILES, overloaded HTTP method, content type and content available directly on the request - see #128
2012-01-22 21:28:34 +02:00