Forums

'Unhandled Exception'

Guys... my site now displays 'Unhandled Exception'. It worked as expected on Sunday and I've changed nothing since then.

@evilkillerfiggin: Is it possible that you didn't reload your web app after your last changes? Thus they were picked up after you verified your site was working when you quit editing for the day?

Have you looked at the error log for your site?

Goto:
  1. Dashboard
  2. Web
  3. evilkillerfiggin.pythonanywhere.com.error.log

See what is in there and hopefully it will illuminate the problem...☺

Last line from error log:

2013-05-07 20:25:29,037 :ImportError: No module named django_evolution

Which makes no sense to me at all. I've not touched the code for months. Haven't used anything from django_evolution in longer.

Here's more from the tail end of the error log - can't get it to display nicely in this forum (why would it ignore newlines?):

2013-05-07 20:25:28,656 :ImportError: No module named django_evolution 2013-05-07 20:25:28,888 :Internal Server Error: /favicon.ico Traceback (most recent call last): File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/handlers/base.py", line 89, in get_response response = middleware_method(request) File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/middleware/common.py", line 67, in process_request if (not urlresolvers.is_valid_path(request.path_info, urlconf) and File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/urlresolvers.py", line 531, in is_valid_path resolve(path, urlconf) File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/urlresolvers.py", line 420, in resolve return get_resolver(urlconf).resolve(path) File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/urlresolvers.py", line 298, in resolve for pattern in self.url_patterns: File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/urlresolvers.py", line 328, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/urlresolvers.py", line 323, in urlconf_module self._urlconf_module = import_module(self.urlconf_name) File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module import(name) File "/home/evilkillerfiggin/LitReview/litreview/urls.py", line 7, in <module> admin.autodiscover() File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/contrib/admin/init.py", line 25, in autodiscover mod = import_module(app) File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module import(name) ImportError: No module named django_evolution 2013-05-07 20:25:29,007 :Traceback (most recent call last): 2013-05-07 20:25:29,007 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in call 2013-05-07 20:25:29,008 : response = self.get_response(request) 2013-05-07 20:25:29,010 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/handlers/base.py", line 179, in get_response 2013-05-07 20:25:29,010 : response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) 2013-05-07 20:25:29,010 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/core/handlers/base.py", line 221, in handle_uncaught_exception 2013-05-07 20:25:29,011 : return debug.technical_500_response(request, exc_info) 2013-05-07 20:25:29,012 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/views/debug.py", line 66, in technical_500_response 2013-05-07 20:25:29,013 : html = reporter.get_traceback_html() 2013-05-07 20:25:29,013 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/views/debug.py", line 287, in get_traceback_html 2013-05-07 20:25:29,014 : return t.render(c) 2013-05-07 20:25:29,014 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/base.py", line 140, in render 2013-05-07 20:25:29,014 : return self._render(context) 2013-05-07 20:25:29,015 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/base.py", line 134, in _render 2013-05-07 20:25:29,016 : return self.nodelist.render(context) 2013-05-07 20:25:29,016 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/base.py", line 823, in render 2013-05-07 20:25:29,018 : bit = self.render_node(node, context) 2013-05-07 20:25:29,018 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/debug.py", line 74, in render_node 2013-05-07 20:25:29,019 : return node.render(context) 2013-05-07 20:25:29,019 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/debug.py", line 84, in render 2013-05-07 20:25:29,020 : output = self.filter_expression.resolve(context) 2013-05-07 20:25:29,021 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/base.py", line 599, in resolve 2013-05-07 20:25:29,022 : new_obj = func(obj, arg_vals) 2013-05-07 20:25:29,022 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/template/defaultfilters.py", line 718, in date 2013-05-07 20:25:29,023 : return format(value, arg) 2013-05-07 20:25:29,023 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/dateformat.py", line 310, in format 2013-05-07 20:25:29,025 : return df.format(format_string) 2013-05-07 20:25:29,025 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/dateformat.py", line 33, in format 2013-05-07 20:25:29,026 : pieces.append(force_unicode(getattr(self, piece)())) 2013-05-07 20:25:29,027 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/dateformat.py", line 214, in r 2013-05-07 20:25:29,028 : return self.format('D, j M Y H:i:s O') 2013-05-07 20:25:29,028 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/dateformat.py", line 33, in format 2013-05-07 20:25:29,029 : pieces.append(force_unicode(getattr(self, piece)())) 2013-05-07 20:25:29,029 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/encoding.py", line 71, in force_unicode 2013-05-07 20:25:29,030 : s = unicode(s) 2013-05-07 20:25:29,030 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/functional.py", line 121, in unicode_cast 2013-05-07 20:25:29,031 : return func(self.__args, *self.__kw) 2013-05-07 20:25:29,031 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/translation/__init.py", line 86, in ugettext 2013-05-07 20:25:29,032 : return _trans.ugettext(message) 2013-05-07 20:25:29,032 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 278, in ugettext 2013-05-07 20:25:29,032 : return do_translate(message, 'ugettext') 2013-05-07 20:25:29,033 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 268, in do_translate 2013-05-07 20:25:29,033 : _default = translation(settings.LANGUAGE_CODE) 2013-05-07 20:25:29,034 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 183, in translation 2013-05-07 20:25:29,034 : default_translation = _fetch(settings.LANGUAGE_CODE) 2013-05-07 20:25:29,034 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 160, in _fetch 2013-05-07 20:25:29,035 : app = import_module(appname) 2013-05-07 20:25:29,036 : File "/home/evilkillerfiggin/.virtualenvs/djang01.4/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module 2013-05-07 20:25:29,036 : import(name) 2013-05-07 20:25:29,037 :ImportError: No module named django_evolution

I showed the site to someone on Sunday, and everything was working perfectly. Now he's waiting for me to send him the url, and I can't.

Last time this happened it was the PIL complaining because something had been updated and broken behind the scenes. Has django_evolution been diddled with in the same way?

Hm. Reloading the site from the Web panel seems to have done the trick. I don't know what's been going on here.

That's really quite strange evil, Absolutely nothing has changed on the site since Friday. I can say that with certainty. Glad that a reload fixed the error.