Hello, I didn't use a certain Django project for a few weeks. Now I wanted to continue developing the project and, as it usually happens with software that has been left alone for a while, it didn't work anymore. I am not aware of having changed anything. The system administrator may, of course, have made some changes to the system. When I try to add a new object, regardless of which type, in the admin interface, I get the error messages given below. (I had to shorten the error message for Google Groups to allow me to post it.)
Any ideas what I could do? Santiago ############################################## AttributeError at /admin/monitoring/message/add/ 'NoneType' object has no attribute 'set_cookie' Request Method: GET Request URL: http://localhost:8000/admin/monitoring/message/add/ Django Version: 1.3 Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'set_cookie' Exception Location: /usr/local/lib/python2.6/site-packages/django/ middleware/csrf.py in process_response, line 239 Python Executable: /usr/bin/python Python Version: 2.6.2 Python Path: [...] Server time: Thu, 31 Mar 2011 10:10:30 +0200 Traceback Switch to copy-and-paste view [...] response None result None kwargs {} view_func <function bound_func at 0xb5ab18> * /usr/local/lib/python2.6/site-packages/django/middleware/csrf.py in process_response 232. if request.META.get("CSRF_COOKIE") is None: 233. return response 234. 235. if not request.META.get("CSRF_COOKIE_USED", False): 236. return response 237. 238. # Set the CSRF cookie even if it's already set, so we renew the expiry timer. 239. response.set_cookie(settings.CSRF_COOKIE_NAME, ... 240. request.META["CSRF_COOKIE"], max_age = 60 * 60 * 24 * 7 * 52, 241. domain=settings.CSRF_COOKIE_DOMAIN) 242. # Content varies with the CSRF cookie, so set the Vary header. 243. patch_vary_headers(response, ('Cookie',)) 244. response.csrf_processing_done = True 245. return response ▶ Local vars -- 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.