I have such a Model :
class FileToProcess(models.Model):
file = models.FileField(upload_to='somewhere')
def save(self):
super(FileToProcess, self).save()
f = open([???], 'r')
for line in f.read():
....
How I get the name/path oh the "just saved" file so I can process it ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---