/usr/lib/python2.7/site-packages/django/core/handlers/base.py
Environment: Request Method: GET Request URL: http://MyServer:8000/ Django Version: 1.6.12 Python Version: 2.7.5 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.redirects', 'bookstor.books', 'bookstor.registration', 'bookstor.profiles', 'django_extensions', 'django.contrib.admin', 'bookstor.cart') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware') Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 94. response = response.render() Exception Type: AttributeError at / Exception Value: 'NoneType' object has no attribute 'render' |
For what it’s worth, I do get this error sometimes when I am running the development server, even in Python 3.5 and Django 1.10. But because it’s the development server, I simply disregard it.
I typically only get this message when I am running several AJAX calls very close together. (e.g. When I am filling out an autocomplete that queries the server after every key press.)
Seeing the error message, though, I wonder if it would be so hard to simply check if self.status is None before executing the command.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
To post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/2bcd4d79-3b7e-4cb6-bac2-0778f308b666%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to djang...@googlegroups.com.