Hi Guys,

I do not want a certain view to refresh my html page.

so I got this method,

def silent_update():
   # Do secret stuff
   return HttpResponseNotModified()

---------------------------------------------------
But i got this error:

Traceback (most recent call last):

  File "C:\Python24\lib\site-packages\django\core\servers
\basehttp.py", line 272, in run
    self.result = application(self.environ, self.start_response)

  File "C:\Python24\lib\site-packages\django\core\servers
\basehttp.py", line 614, in __call__
    return self.application(environ, start_response)

  File "C:\Python24\lib\site-packages\django\core\handlers\wsgi.py",
line 193, in __call__
    response = middleware_method(request, response)

  File "C:\Python24\lib\site-packages\django\contrib\sessions
\middleware.py", line 74, in process_response
    patch_vary_headers(response, ('Cookie',))

  File "C:\Python24\lib\site-packages\django\utils\cache.py", line
104, in patch_vary_headers
    if response.has_header('Vary'):

TypeError: unbound method has_header() must be called with
HttpResponseNotModified instance as first argument (got str instance
instead)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to