Commit graph

31 commits

Author SHA1 Message Date
Benoît Bryon
e7cb6e884a Preparing release 1.0 2012-12-04 12:57:48 +01:00
Benoît Bryon
0d2d38718e Improved demo project: provided initial data and a simple homepage with some links. 2012-12-04 12:21:45 +01:00
Benoît Bryon
4f29852ddb Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
Benoît Bryon
7738d1c0b6 Merge pull request #6 from benoitbryon/1-nginx
Closes #1. Introducing Nginx optimisations. Should be enough for a start.
2012-11-28 10:06:32 -08:00
Benoit Bryon
9762025d1a Refs #1 - Fixed nginx middleware. Populated documentation (examples should be moved to demo project). 2012-11-28 19:04:13 +01:00
Benoit Bryon
1f8876ba4f Refs #1 - Experimental support for Nginx X-Accel. Work in progress 2012-11-28 16:53:56 +01:00
Benoit Bryon
66c83a8914 Introduced DownloadResponse.url. Not used yet. 2012-11-28 16:53:56 +01:00
Benoit Bryon
450d2f42bb Minor precision about deserialization in views. 2012-11-28 16:53:56 +01:00
Benoit Bryon
5a031a2011 Use **kwargs in DownloadMixin.render_to_response() 2012-11-28 16:53:56 +01:00
Benoit Bryon
e5a36a4b41 Introduced DownloadResponse.url. Not used yet. 2012-11-22 10:29:09 +01:00
Benoit Bryon
9e9ee8bfdf Minor precision about deserialization in views. 2012-11-22 10:00:36 +01:00
Benoit Bryon
343b8bea07 Use **kwargs in DownloadMixin.render_to_response() 2012-11-22 09:51:52 +01:00
Benoit Bryon
41e00d312d Refs #1 - Introduced experimental support for Nginx X-Accel. WORK IN PROGRESS. 2012-11-19 14:43:42 +01:00
Benoit Bryon
46542cdc3c Refs #3 - Introduced base decorators and middlewares. 2012-11-19 14:41:52 +01:00
Benoit Bryon
5a432dc700 Refs #3 - Introduced DownloadResponse. 2012-11-19 14:41:52 +01:00
Benoit Bryon
0ae3653d1e Clarified charset and encoding. 2012-11-19 14:41:52 +01:00
Benoit Bryon
faaa12fcb8 PEP8 on views.py 2012-11-19 14:41:52 +01:00
Benoit Bryon
434db01168 Fixed ObjectDownloadView.object access with a cache. Using client-side basename instead of server-side filename to guess the mimetype. 2012-08-30 23:12:27 +02:00
Benoit Bryon
9e4e7bfc0a Added attributes to ObjectDownloadView, so that it is possible to use a model as a cache for file metadata (size, mime-type, basename...). Added docstrings. 2012-08-29 18:06:29 +02:00
Benoit Bryon
d69b84a705 Modified the way documentation version is retrieved, so that readthedocs.org can get it. 2012-08-29 10:19:51 +02:00
Benoit Bryon
36e862d1c0 Introduced API documentation. Not complete yet, since docstrings are not verbose. 2012-08-29 10:11:08 +02:00
Benoit Bryon
33ad5d492e Refactored generic download views. Added storage argument to DownloadView. Renamed DownloadView's 'file' argument to 'filename'. 2012-08-28 15:47:26 +02:00
Benoit Bryon
5a2a174b3e Reduced memory usage when serving files: return an iterator of chunks, don't load the whole file into memory. 2012-08-28 10:46:02 +02:00
Benoit Bryon
ab75aa6e08 Fixed tests: tests use a temporary settings.MEDIA_ROOT, so files are isolated for tests. 2012-08-28 10:13:41 +02:00
Benoit Bryon
24b15e0400 Improved testing. Fixed 'make documentation'. 2012-08-27 18:27:00 +02:00
Benoit Bryon
7f1801c684 Fixed example in README. ObjectDownloadView now use 'file_field' argument instead of 'file_attribute', in order to mimic 'slug_field'. 2012-08-27 17:33:33 +02:00
Benoit Bryon
d48a3d9052 Promoted ObjectDownloadView instead of DownloadView in README. 2012-08-27 17:25:24 +02:00
Benoit Bryon
a45c79552e Introduced ObjectDownloadView. UNSTABLE. Work in progress. 2012-08-27 17:05:24 +02:00
Benoit Bryon
224fbb15ec Added notice in README: experimental project. 2012-08-27 16:14:35 +02:00
Benoit Bryon
536728bc0a Introduced DownloadView. Introduced demo project, used to develop and test the library. Work in progress. 2012-08-27 15:57:47 +02:00
Benoit Bryon
f9bdd8fca7 Introduced project's placeholders. Work in progress. 2012-08-27 12:00:17 +02:00