Tuesday, March 15, 2016

Need to remove un-used from from Amazon S3

In a django project need to upload static data to amazon S3, a bit searching finds out that django-storage and collectstatic management command can help me out there.

My use-case is the front-end will generate the complied static files (js, css). And those files need to be uploaded to S3.

unused file should be removed from s3 before uploading changed files.

Suppose index.js created a compiled file index_11.js, which already present on S3, after index.js file is changed and compiled file index_22.js should be uploaded and index_11.jsshould be removed from S3.



Is is possible through the collectstatic or otherwise?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b49c9700-e46c-43c0-ae15-c535d4a010c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment