Domdom, The first thing to do is Google|Bing|Other Search Engine of your choice "WindowsError 32". If you had done that, the first link:
http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx Would have given you a clue: ERROR_SHARING_VIOLATION 32 (0x20): The process cannot access the file because it is being used by another process. I think the issue is that your code is trying to delete a file when it is being accessed by something else. Perhaps you forgot to close it elsewhere? Best regards, Peter On Jul 11, 9:53 pm, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On Jul 11, 7:53 am, Domdom <spirit.of.b...@gmail.com> wrote: > > > Hello! When I try to delete file from django on windows sometimes I > > meet error page WindowsError 32. > > What is WindowsError 32 ? (believe it or else, but quite a few people > here never use this particular OS). > > > My model calls this method every fore > > every delete: > > > def delete(self, using=None): > > super(UserFile, self).delete(using) > > self.fileobject.close() > > self.fileobject.storage.delete(self.fileobject) > > What is self.fileobject ? > > > I tried a lot of variants, but error appears with every varient. > > ProgrammingByPermutation is a well-known antipattern (http:// > en.wikipedia.org/wiki/Programming_by_permutation). Better to > understand exactly WHY your code fail, so you have a chance to know > why it works once you have the problem fixed. > > > I found, that it is Windows/python bug. > > Do you mean that you found a link to a ticket about this exact problem > in a bugtracking system? Or that you only have this problem under > Windows ? > > > My project will be working under > > the linux, but I need to develop and test it under the windows. I do > > not know what to do :-( > > Please start here:https://code.djangoproject.com/wiki/UsingTheMailingList > > then come back with enough detailed informations about your problem. > > HTH -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.