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.