django-orphaned 0.3

Delete all orphaned files from your models
django-orphaned is a Django app that can be used to delete all orphaned files.

Setup

install via easy_install or pip

easy_install django-orphaned

with pip

pip install django-orphaned

add it to installed apps in django settings.py

INSTALLED_APPS = (
 'django_orphaned',
 ...
)


now add this to your settings.py ('app' is your project name where models.py is located):

ORPHANED_APPS_MEDIABASE_DIRS = {
 'app':{
 'root':MEDIABASE_ROOT, # MEDIABASE_ROOT => default location of your uploaded items e.g. /var/www/mediabase
 }
}


the least to do is to run this command to show all orphaned files

python manage.py deleteorphaned --info

and to finally delete all orphaned files

python manage.py deleteorphaned

last updated on:
June 20th, 2012, 18:51 GMT
price:
FREE!
developed by:
Leonardo Di Lella
homepage:
github.com
license type:
MIT/X Consortium License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT