Skip to content

the delete functions in the models that use MEDIA_ROOT don't actually remove the files from the OS #15

@chrissprague

Description

@chrissprague

run through: create an exam review, and then delete it through the admin site

what will happen is that django properly recognizes that it is removed from the database, but the actual file is still in MEDIA_ROOT (csc_new/media/[media] - where, in this case, [media] would be "exam_reviews" -- no quotes)

not a big deal but we don't want our webserver getting clogged with unused files without us being aware

anyone have an idea on how to fix this? I'm guessing it's just a path reference issue (e.g. the name referred to in the delete code might be wrong). Or am I missing something/doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions