django-orphaned icon indicating copy to clipboard operation
django-orphaned copied to clipboard

delete all orphaned files created by django (FileField)

Results 8 django-orphaned issues
Sort by recently updated
recently updated
newest added

``` bash $ python manage.py deleteorphaned --info Traceback (most recent call last): File "manage.py", line 8, in execute_from_command_line(sys.argv) File "/home/foo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/home/foo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in...

teaches django-orphaned to not delete files needed only in one app if there are multiple apps with the same root directory

In my case all apps use a single media root directory and if I define them all in `ORPHANED_APPS_MEDIABASE_DIRS` they just mark each other's files for deletion. All files. Am...

unicode filenames support

all_files.append(os.path.join(root.decode('utf-8'), basename.decode('utf-8')))

I've added the option for a log file. - Reordered the import list - Added ORPHANED_LOGS_DIR option from django settings - Print the success/error operations status for each file/directory in...

The last release published at the Python Package Index (PyPI) is django-orphaned 0.3[1], maybe it's time to create a new package and allow installing recent version using standar pip comand:...

Here's my structure: ``` media/ media/squarei/ media/squarei/defaults media/squarei/defaults/example1.png media/squarei/defaults/example2.png media/squarei/user_upload.png ``` My config looks like this ``` ORPHANED_APPS_MEDIABASE_DIRS = { 'squarei': { 'root': MEDIA_ROOT, 'skip': ( os.path.join(MEDIA_ROOT, 'squarei/defaults'), ), }...