Thanks for this, I was sure there were something to get access to the value
of a field !
On Monday, August 25, 2014 4:00:23 PM UTC+2, Collin Anderson wrote:
>
> Roughly something like this:
>
> def dir_file(analysis, file_name): # should live outside your model
> return '%s/%s' % (analysis.
Roughly something like this:
def dir_file(analysis, file_name): # should live outside your model
return '%s/%s' % (analysis.uuidDir, file_name)
then models.FileField(upload_to=dir_file)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hello everybody,
I'm developing an app for the first time with Django and I have a problem
with upload path and UUID.
I have a form with 3 fields for uploading text files. So I want to save
those 3 files in the same directory which have a unique name. First I did
this a big random number but if
3 matches
Mail list logo