On Aug 3, 2005, at 11:46 AM, yacc wrote:
meta.FileField('data', upload_to="upload"),
OK, that looks good.
downman/settings/admin.py:ADMIN_MEDIA_PREFIX = '/media/' downman/settings/main.py:MEDIA_ROOT = '/tmp/' downman/settings/main.py:MEDIA_URL = '/media/'
MEDIA_URL probably should be a complete URL prefix (i.e. "http:// example.com/media/") but what you've got should work.
Is admin.py importing the settings from main?
Even curiouser is the fact that pressing 'Save' on an empty form doesn't give any errors either.
Does your web user have write access to MEDIA_ROOT? Since it's "/ tmp/" it probably does, but you should check anyway... Are you sure that your OS isn't clearing out /tmp on you?
That leaves the question: If something bad happens -> where are the tracebacks?
That's a good question; I'm not sure if the code indeed raises a exception if the file can't be written; I'll look into that.
Jacob