I'm trying to use the strftime formatting suggested by Django
documentation for my FileField like this:
file = models.FileField("File",upload_to="audio/%Y/%m/%d")
The problem I ran into is that the specified folder doesn't exist when
the object is saved.
I guess there is method like presave() that can be used to solve this
problem? It has stuck me for a while now.
Thank you,
Cliff
--~--~---------~--~----~------------~-------~--~----~
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