http://docs.djangoproject.com/en/dev/howto/custom-file-storage/

On Apr 29, 6:48 pm, xRobot <ciaosonoanto...@gmail.com> wrote:
> No I am newbie and I don't know how to overwrite storage... could you
> help me  ^_^ ?
>
> --------
>
> On 29 Apr, 12:46, "ge...@aquarianhouse.com" <ge...@aquarianhouse.com>
> wrote:
>
>
>
> > Did you try to overwrite the storage?
>
> > On Apr 29, 6:16 pm, xRobot <ciaosonoanto...@gmail.com> wrote:
>
> > > I want to use str(uuid.uuid4()) instead of the name uploaded.
>
> > > For instance: I have this model:
>
> > > class foo(models.Model):
> > >    pic  = ThumbnailField(upload_to='pics', size=(200, 200))
>
> > > I am uploading hello_world.jpg and I should save these named versions
> > > should be saved for example in:
>
> > > 4ba9b397-da69-4307-9bce-e92887e84d2f.jpg
>
> > > How can I do that ?
> > > Thanks ^_^
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Django users" group.
> > > To post to this group, send email to django-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/django-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to