Re: Specifying custom upload to with FileField

2008-02-08 Thread Pigletto
> With this the uploaded files will go to <>/files/, > howeverI want to upload all files to a subdirectory with the name of > the project, how can I do that? Same question was asked yesterday: http://groups.google.com/group/django-users/browse_thread/thread/7e193c1532920a6f# -- Maciej Wisniowski

Re: Specifying custom upload to with FileField

2008-02-08 Thread patrickk
you could use the filebrowser: http://code.google.com/p/django-filebrowser/ patrick On Feb 8, 8:24 am, josh <[EMAIL PROTECTED]> wrote: > I have this question as well but from what I've seen the only > customizing available is to use strftime formatting. > josh > > On Feb 6, 2008, at 11:16 AM,

Specifying custom upload to with FileField

2008-02-06 Thread shabda
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 <>/files/, howeverI want to upload