83 Commits

Author SHA1 Message Date
Jeremy Carbaugh c1254c8e9f Merge branch 'master' of github.com:sunlightlabs/django-mediasync into backends 2010-03-17 15:58:48 -04:00
Jeremy Carbaugh e50ce3bbbd add extra files to MANIFEST 1.0.1 2010-03-17 15:28:10 -04:00
Jeremy Carbaugh d392d41cbd update for 1.0.1 release 2010-03-17 15:25:17 -04:00
Jeremy Carbaugh cd4ba96ff7 fix merge conflicts from master 2010-03-06 22:12:04 -05:00
Jeremy Carbaugh 568d5eb909 duplicate Rob's boto key changes from master 2010-03-06 22:07:14 -05:00
Rob Hudson d69681f27e Shuffled S3 key and secret passing around.
This patch tries to use the key and secret from settings if available and falls
back to trying boto config (i.e. `~/.boto`), otherwise it throws an error.
2010-03-04 14:45:04 -08:00
Jeremy Carbaugh e400c7cca2 backend updates 2010-02-20 15:56:37 -05:00
Jeremy Carbaugh e2927f1bc9 more test work 2010-02-20 11:59:05 -05:00
Jeremy Carbaugh d59ac535a9 more test work 2010-02-20 11:58:49 -05:00
Jeremy Carbaugh a4b1584c76 really basic push to cloudfiles 2010-02-11 22:36:32 -05:00
Jeremy Carbaugh 612d3c85d5 do not put connection on self as it is never used again 2010-02-11 22:36:16 -05:00
Jeremy Carbaugh ffbaba6032 remove CSS rewriting 2010-02-11 22:35:35 -05:00
Jeremy Carbaugh cfe1c79dd7 a mostly working, if inelegant, addition of pluggable backends 2010-02-11 21:46:41 -05:00
Jeremy Carbaugh f80e574405 merge from master 2010-02-11 20:56:07 -05:00
Jeremy Carbaugh 93e5ece3ec Merge branch 'master' of github.com:sunlightlabs/django-mediasync 2010-02-11 20:19:21 -05:00
Jeremy Carbaugh cdb27d283b remove views file that is not used 2010-02-11 20:19:08 -05:00
Jeremy Carbaugh 8f04de17e9 some basic tests 2010-02-11 20:13:29 -05:00
Jeremy Carbaugh 079077d254 more work on moving out backend code 2010-02-11 20:13:17 -05:00
Peter Sanchez 4f21a53a2d Added scheme support for situations when it's needed to serve media files via S3 SSL 2010-02-08 10:32:52 +08:00
Jeremy Carbaugh 5b64319862 initial backend work 2010-02-05 12:52:40 -05:00
Jeremy Carbaugh b1c257d926 rename clients to backends 2010-02-05 09:54:12 -05:00
Jeremy Carbaugh d8e5685e44 rename clients to backends 2010-02-05 09:53:55 -05:00
Rob Hudson c80a687b3a Cleaned up mimetypes a bit more. 2010-01-26 21:31:02 -08:00
Rob Hudson 64c3768da0 Included other mimetypes for jsmin check. 2010-01-26 20:51:54 -08:00
Rob Hudson ad09c4c86c Merge remote branch 'sunlightlabs/master' 2009-11-08 09:07:25 -08:00
Jeremy Carbaugh 0c32f17008 version number changes for 1.0 release 1.0 2009-10-26 09:36:38 -04:00
Jeremy Carbaugh d145308e34 add cache-control header for http 1.1 2009-10-21 15:57:17 -04:00
Jeremy Carbaugh e3e05ec073 use GMT instead of UTC 2009-10-21 14:54:53 -04:00
Jeremy Carbaugh 6f15dddece ignore compression on files that are smaller than 1KB 2009-10-21 14:35:11 -04:00
Jeremy Carbaugh 3b175915a6 strip the zlib header and checksum from from deflated file content 2009-10-21 12:27:03 -04:00
Jeremy Carbaugh 1b6b97949c update README and add AUTHORS file to honor the contributions of Rob Hudson and James Turk 2009-10-17 10:19:07 -04:00
Rob Hudson 43a470993b Updated syncmedia management command dir walking.
This cleans up a couple items:

1. Moved the check for directories starting with '.' and '_' into the method
that recursively walks the directory, so subdirectories are also included and
skipped if they are considered hidden.

2. Removed the `if not "/." in root` check as this is covered by the above
method which has the added check for "/_" and also will work on Windows paths.

3. Added a safety to string.replace on the rare chance the directory string
occurs multiple times.
2009-10-17 21:55:52 +08:00
Rob Hudson 3470152827 Updated syncmedia management command dir walking.
This cleans up a couple items:

1. Moved the check for directories starting with '.' and '_' into the method
that recursively walks the directory, so subdirectories are also included and
skipped if they are considered hidden.

2. Removed the `if not "/." in root` check as this is covered by the above
method which has the added check for "/_" and also will work on Windows paths.

3. Added a safety to string.replace on the rare chance the directory string
occurs multiple times.
2009-10-16 08:03:58 -07:00
robhudson 5294fc4557 Added extra notes on using the key prefix for cache busting. 2009-10-16 02:46:59 +08:00
Jeremy Carbaugh 278ee9673f add abspath to fix syncing when paths have . or .. in them 2009-10-15 14:45:43 -04:00
Jeremy Carbaugh 9fe2742d34 add secret MEDIASYNC_URL_PROCESSOR setting to allow a callable to modify the media URL before it is written by the template tag 2009-10-07 11:15:11 -04:00
Jeremy Carbaugh 2c46965b69 remove import of non-existent compress method 2009-10-06 23:46:08 -04:00
Jeremy Carbaugh 2bfbb0a695 clarify license 2009-10-06 23:20:49 -04:00
Jeremy Carbaugh 08bfb1ebb7 switch from gzip to zlib for compression 2009-10-06 23:05:08 -04:00
Jeremy Carbaugh 4616872d23 aaaaand I forgot __init__.py as well 2009-10-06 22:38:34 -04:00
Jeremy Carbaugh 7a9fbd4ebb add imports that I forgot to move with the compress method 2009-10-06 21:32:20 -04:00
Jeremy Carbaugh c91ee27723 move s3 to clients directory 2009-10-06 17:25:23 -04:00
Jeremy Carbaugh ab6a5a77e1 remove deprecated conditional template tags 2009-10-06 10:21:24 -04:00
Jeremy Carbaugh 5e3988e37d add mkpath method to construct url from base_url, path, and filename 2009-10-06 10:20:06 -04:00
Jeremy Carbaugh 6a73d8a6c0 no models 2009-10-06 10:14:13 -04:00
Jeremy Carbaugh c2e7808eca move compress method to utils 2009-10-06 10:12:15 -04:00
Jeremy Carbaugh 8b09e8b1f5 base URL config on MEDIA_URL setting 2009-09-25 17:44:33 -04:00
Jeremy Carbaugh 662a3c41b5 Default to empty CSS and JS paths. Document the usage of MEDIASYNC_CSS_PATH and MEDIASYNC_JS_PATH. Closes #4. 2009-09-25 14:07:17 -04:00
Jeremy Carbaugh c30bea4270 remove hard coded paths and most assumptions about the MEDIA_ROOT layout 2009-09-24 17:30:20 -04:00
Jeremy Carbaugh 9d10f2f8a2 update conditional deprecation in README 2009-09-24 15:25:52 -04:00