I have a model like

class ProjectFile(models.Model):
    project = models.ForeignKey(Project)
    file = models.FileField(upload_to = '/files/')

class Project(models.Model):
  name = models.CharField(max_length  = 100)

With this the uploaded files will go to <<media_root>>/files/,
howeverI want to upload all files to a subdirectory with the name of
the project, how can I do that?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to