On 4/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > At the moment, there is no easy way to change the base directory for > file uploads. You can however, change the filename to include > sub-directories, I believe (so change foo.blah to upload/dir/foo.blah). > If you want to try and change this, read the source in > django/db/models/fields.py and see what you can come up with. It does > get a bit hair, though, because of some curried functions.
Everytime a custom upload_to question comes up, I offer up my (now quite old) patch that allows it, but only in custom views: http://code.djangoproject.com/ticket/1994 The patch may not even apply anymore, but for someone who really needs custom upload_to, it's an option. Jay P. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---