Hi ,

Am using gae with django.What am doing is getting some value and
storing it according to model class,when i hit the url for saving it
am getting error 'str' object has no attribute 'status_code' here is
full trace back


--> --> -->

Traceback (most recent call last):
  File "/home/srinivas/Downloads/google_appengine/google/appengine/
tools/dev_appserver.py", line 4053, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "/home/srinivas/Downloads/google_appengine/google/appengine/
tools/dev_appserver.py", line 3977, in _Dispatch
    base_env_dict=env_dict)
  File "/home/srinivas/Downloads/google_appengine/google/appengine/
tools/dev_appserver.py", line 588, in Dispatch
    base_env_dict=base_env_dict)
  File "/home/srinivas/Downloads/google_appengine/google/appengine/
tools/dev_appserver.py", line 3050, in Dispatch
    self._module_dict)
  File "/home/srinivas/Downloads/google_appengine/google/appengine/
tools/dev_appserver.py", line 2954, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/home/srinivas/Downloads/google_appengine/google/appengine/
tools/dev_appserver.py", line 2836, in ExecuteOrImportScript
    script_module.main()
  File "/home/srinivas/Desktop/Var_Project/src/main.py", line 31, in
main
    util.run_wsgi_app(application)
  File "/home/srinivas/Downloads/google_appengine/google/appengine/ext/
webapp/util.py", line 98, in run_wsgi_app
    run_bare_wsgi_app(add_wsgi_middleware(application))
  File "/home/srinivas/Downloads/google_appengine/google/appengine/ext/
webapp/util.py", line 116, in run_bare_wsgi_app
    result = application(env, _start_response)
  File "/home/srinivas/Downloads/google_appengine/lib/django_0_96/
django/core/handlers/wsgi.py", line 193, in __call__
    response = middleware_method(request, response)
  File "/home/srinivas/Downloads/google_appengine/lib/django_0_96/
django/middleware/common.py", line 59, in process_response
    if response.status_code == 404:
AttributeError: 'str' object has no attribute 'status_code'

and then i tried with the static list of values which are going to be
saved to model,then also i got the same error

and here you can see my piece of code
http://pastie.org/1902212


please any thoughts on this it would be a great

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to