ccnmtl/footprints — pull request #7 by thraxil (2014-11-14 10:05:07+00:00)
Title: django filefield paths need to be relative. PMT #97916

@sdreher, here you go.

Django doesn't like it if the path starts with '/'.

I also took the liberty of putting uploads within 'digitalobjects' instead of straight at the
root of the uploads directory. IME, if you later have other model types that want to upload
files, it will be good to keep them seperate from the beginning.

Anyway, I was able to reproduce the 400 error locally, and this fixes it. Should work on
production too.

I'm also going to go in on itchy and make the uploads directory the proper symlink
to the NFS server, but that should be unrelated.

If you're doing uploads on this app, it would also probably be good to go take a look
at the nginx config and make sure it isn't set to block anything too small (again,
unrelated to the current issue, but worth keeping in mind).

Long term, I recommend thinking about S3 for all our user uploads.