thx,
using this code can resolve the issue:
import shutil

shutil.copyfile(src,dst)

On 9月10日, 下午10时10分, omat <[EMAIL PROTECTED]> wrote:
> check the python documentation:http://docs.python.org
>
> On 10 Eylül, 16:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > i want to  copy file 1.jpg to the 2.jpg in the same folder in django
> > view.
> > how to write such code, thx!


--~--~---------~--~----~------------~-------~--~----~
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