Hey Britto, What I meant was have a separate data script made with boto3 where you got though every bucket id one at a time and set the values accordingly. Please check the developer documentation for same. You’ll surely find a matching function for this.
By services I meant that using django check the first you check for the value entered by boto in db. Now you match it with the date of you choice if it matches, call another function to update or use the data script. All depends upon the way you wish to execute the whole code. Regards Hd On Sat, 4 May 2019 at 19:29, Britto . <[email protected]> wrote: > Not clear what are you referring with services.py. I know boto3 and > django-storages. But how to configure it is the question. > > For boto3 there is a settings.py variable AWS_S3_OBJECT_PARAMETERS through > that we could set expiration. > Just wanted to make sure that how do we set different expiration for each > object uploaded? > > > Regards > Britto > > > On Sat, 4 May 2019 at 16:24, Hardipinder Singh <[email protected]> > wrote: > >> Hey Britto, >> >> Check boto3 for this. Django can be used to check data using services.py. >> >> Hope this helps >> >> Thanks & Regards >> Hardipinder Singh >> >> On 04-May-2019, at 13:39, Britto . <[email protected]> wrote: >> >> Hello All, >> >> How could we set S3 life-cycle expiration for a file from Django when >> uploading to S3 back-end? >> >> >> Regards >> Britto >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> 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/CAF0v3b5_0x4VfCSz9qaCkhGspPkfGyaR%3DgcdR1owbMTMWMqWBQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAF0v3b5_0x4VfCSz9qaCkhGspPkfGyaR%3DgcdR1owbMTMWMqWBQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> 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/D545031E-195C-44F3-8C19-802E0DA93A41%40gmail.com >> <https://groups.google.com/d/msgid/django-users/D545031E-195C-44F3-8C19-802E0DA93A41%40gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/CAF0v3b7Br0YaDbTgkbYgiRT4pSKENe5iApUtm_tU8HsEQ5jLKg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAF0v3b7Br0YaDbTgkbYgiRT4pSKENe5iApUtm_tU8HsEQ5jLKg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CABTc4VyFp0Bxy8-TyzAtthYu-xNNCPUP-po9VicF7VX4EA7bZA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

