It took me a while but I have opensourced a tool to clean the media folder
from all the
leftovers. It's a cron job with a simple admin gui. Also handles multiple
upload folders.
We have been using something similar to this internally for more than a
year,
and we are pretty happy about it.
http
Hi Alex,
On 03/29/2011 01:36 AM, Alex Kamedov wrote:
> I think, cron jobs is an overhead in many simple cases where old
> behaviour was useful and more simpler.
> Why you don't want include DeletingFileField[1] in django?
>
> [1] https://gist.github.com/889692
Because, as mentioned above, it is
I think, cron jobs is an overhead in many simple cases where old behaviour
was useful and more simpler.
Why you don't want include DeletingFileField[1] in django?
[1] https://gist.github.com/889692
On Mon, Mar 28, 2011 at 9:07 PM, Jacob Kaplan-Moss wrote:
> On Mon, Mar 28, 2011 at 4:16 AM, -RAX-
On Mon, Mar 28, 2011 at 4:16 AM, -RAX- wrote:
> Said so I will start implementing such a maintenance job, and I am
> willing to share it so maybe we could include it in a future release
> of django.
Sounds good -- I look forward to seeing your code!
Jacob
--
You received this message because y
On Mon, Mar 28, 2011 at 5:16 PM, -RAX- wrote:
>> One query for each model
>> containing one or more FileFields is enough to build a list of the files
>> that ought to exist, and any file not in that list can presumably be
>> removed.
>
> How can I sleep at night knowing that there is a maintenance
> One query for each model
> containing one or more FileFields is enough to build a list of the files
> that ought to exist, and any file not in that list can presumably be
> removed.
How can I sleep at night knowing that there is a maintenance cron job
deleting files which can be "presumably be r
On Sun, Mar 27, 2011 at 5:42 AM, -RAX- wrote:
> I am referring to this:
> http://docs.djangoproject.com/en/dev/releases/1.3/#filefield-no-longer-deletes-files
> Instead of preventing the data loss from happening a very usefull
> feature has been removed.
I'm sorry this caused an problem for you.
On 03/27/2011 06:42 AM, -RAX- wrote:
> I am referring to this:
> http://docs.djangoproject.com/en/dev/releases/1.3/#filefield-no-longer-deletes-files
> Instead of preventing the data loss from happening a very usefull
> feature has been removed.
Well, it does also prevent the data loss from happe