imgman
imgman copied to clipboard
Deleting the Image Files After 30 minutes
Delete the SinImage Model After 30 minutes of creation and also delete the image file associated with it. Write a Custom Management Command. Use Cron For scheduling the task.
Hello, this is an interesting project ! I don't know django, but a few friends told me it's a very cool framework too.
I think I will join the discord and start working on it during next week
Hello, this is an interesting project ! I don't know django, but a few friends told me it's a very cool framework too.
I think I will join the discord and start working on it during next week
Great! Let me know If you want to discuss something
Assign me @kailashchoudhary11
Hi @highb33kay I see you were assigned to this issue, finally I don't think I will work on it.
Just sharing you some useful notes :
- This project uses Cloudinary to store images (so images are not in the local storage, and you will have to use the Cloudinary Api)
- You need to complete the task that deletes images : https://github.com/kailashchoudhary11/imgman/blob/master/sinimg/management/commands/delete-image.py
- About making that task run every 30 minutes, keep in mind this project is hosted on Heroku (does not support Cron) and you may need to use a Timer (https://stackoverflow.com/a/14035296) or Heroku Scheduler (https://devcenter.heroku.com/articles/scheduler)
how about celery?
how about celery?
How will you integrate it with heroku?
can't say. No idea. Less experience in deploying