I don't know how I can solve this issue.

This is the Traceback


Environment:

Request Method: POST
Request URL: http://localhost:8080/admin/incidencies/incidencia/5/
Django Version: 1.0.2 final
Python Version: 2.6.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.gis',
 'parcsijardins.incidencies',
 'parcsijardins.public',
 'shared']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "D:\Python26\Lib\site-packages\django\core\handlers\base.py" in
get_response
  86.                 response = callback(request, *callback_args,
**callback_kwargs)
File "D:\Python26\Lib\site-packages\django\contrib\admin\sites.py" in
root
  157.                 return self.model_page(request, *url.split('/',
2))
File "D:\Python26\Lib\site-packages\django\views\decorators\cache.py"
in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)
File "D:\Python26\Lib\site-packages\django\contrib\admin\sites.py" in
model_page
  176.         return admin_obj(request, rest_of_url)
File "D:\Python26\Lib\site-packages\django\contrib\admin\options.py"
in __call__
  197.             return self.change_view(request, unquote(url))
File "D:\Python26\Lib\site-packages\django\db\transaction.py" in
_commit_on_success
  238.                 res = func(*args, **kw)
File "D:\Python26\Lib\site-packages\django\contrib\admin\options.py"
in change_view
  580.                 self.save_model(request, new_object, form,
change=True)
File "D:\Python26\Lib\site-packages\django\contrib\admin\options.py"
in save_model
  376.         obj.save()
File "D:\alex\sigte\webs\alex\pijardins\trunk\parcsijardins\lib
\utils.py" in save
  81.                     field.storage.delete(file_name)
File "D:\Python26\Lib\site-packages\django\core\files\storage.py" in
delete
  185.             os.remove(name)

Exception Type: WindowsError at /admin/incidencies/incidencia/5/
Exception Value: (32, 'The process cannot access the file because it
is being used by another process')


On 21 Març, 17:47, Alexandre <abusqu...@gmail.com> wrote:
> Hi,
> I'm trying to apply this snippethttp://www.djangosnippets.org/snippets/1129/
> but i have this error:
> "Error 32: The process cannot access the file because it is being used
> by another process".
> I'm working with Windows XP and windows 2003
>
> the error lines are
>
> ,..
> field.storage.delete(final_name)
> ,..
> field.storage.delete(file_name)
> ,..
>
> anyone can help me?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to