I have an app that uses 1.9. It will work fine for weeks and weeks, and then out of the blue a page that has just worked will crash with this:
Request Method: GET Request URL: Django Version: 1.9 Python Version: 2.7.5 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'core.data', 'core.alerts', 'core.reports', 'app.cdsem', 'app.semvision', 'app.developer', 'dispatch', 'ui', 'configuration'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'middleware.LastSiteUrl'] Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 174. response = self.process_exception_by_middleware(e, request) File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 172. response = response.render() File "/usr/lib/python2.7/site-packages/django/template/response.py" in render 160. self.content = self.rendered_content File "/usr/lib/python2.7/site-packages/django/template/response.py" in rendered_content 137. content = template.render(context, self._request) File "/usr/lib/python2.7/site-packages/django/template/backends/django.py" in render 95. return self.template.render(context) File "/usr/lib/python2.7/site-packages/django/template/base.py" in render 204. with context.bind_template(self): File "/usr/lib64/python2.7/contextlib.py" in __enter__ 17. return self.gen.next() exceptions must be old-style classes or derived from BaseException, not str Request Method: GET Request URL: Django Version: 1.9 Exception Type: TypeError Exception Value: exceptions must be old-style classes or derived from BaseException, not str Exception Location: /usr/lib/python2.7/site-packages/django/utils/module_loading.py in import_string, line 23 If I go the exact same URL again it will work. Anyone have any idea what could be causing this or how I can debug it further? -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@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/CACwCsY5wzjmNLAdMfnLVYQuvPrwUtq-Czu%3DE%3DRggkM8vUFOkiA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.