How to setup automatic deletion of files referenced by a filefield after record is deleted. Django 1.3

In Django 1.3 deleting a record of a filefield will not automatically delete the file associated with the record. This is done to prevent data loss scenarios such as roll back transactions and different models representing the same file. So to clean up unrepresented files in the database, you have to …

django-static-files

Note: Django Static Files (django-staticfiles) has been included as a contrib app in django 1.3. However, for the most cutting edge features, and also compatibility with earlier Django versions, users can install the ‘django-staticfiles’ app. django-staticfiles is a handy tool for managing and transitioning static media between development environments (which …