Hi,

I am trying to update a object via admin interface. Nothing fancy, and
it all goes well on my local environment, as it does many times
before.

But in the production site, I get an AttributeError:

'module' object has no attribute 'parse_file_upload'


The traceback (which dpaste refused to save) is as follows:


Environment:

Request Method: POST
Request URL: http://****/pws/admin/encounter/standardcomment/10/
Django Version: 1.0.2 final
Python Version: 2.5.1
Installed Applications:
['registration',
 'django.contrib.auth',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.humanize',
 'thumbnail',
 'userprofile',
 'nhsdata',
 'encounter']
Installed Middleware:
('django.middleware.cache.CacheMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'debugfooter.DebugFooter')


Traceback:
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\core
\handlers\base.py" in get_response
  86.                 response = callback(request, *callback_args,
**callback_kwargs)
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\contrib
\admin\sites.py" in root
  157.                 return self.model_page(request, *url.split('/',
2))
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\views
\decorators\cache.py" in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\contrib
\admin\sites.py" in model_page
  176.         return admin_obj(request, rest_of_url)
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\contrib
\admin\options.py" in __call__
  197.             return self.change_view(request, unquote(url))
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\db
\transaction.py" in _commit_on_success
  238.                 res = func(*args, **kw)
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\contrib
\admin\options.py" in change_view
  561.         if request.method == 'POST' and request.POST.has_key
("_saveasnew"):
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\core
\handlers\pyisapie.py" in _get_post
  51.             This._load_post_and_files()
File "D:\CMSRoot\Clarifix-ILG\Python25\Lib\site-packages\django\core
\handlers\pyisapie.py" in _load_post_and_files
  32.           This._post, This._files = http.parse_file_upload
(This._headers_in, This.raw_post_data)

Exception Type: AttributeError at /pathwaysolutions/validation/admin/
encounter/standardcomment/10/
Exception Value: 'module' object has no attribute 'parse_file_upload'


This happens for every model and every add / edit operation.


The model in example does not have a file or image field. Where does
this 'parse_file_upload' thing come from?


Due to the production environment limitations, the site should run
under a fixed URL, /pws/. This does not cause any problem within the
application, though. Can it be the cause of the admin sites weird
behavior?


Thanks for any comment,
oMat


ps: Django 1.0.2 is running both in local development and production
environments. IIS 6 is the server in production.


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