i'm working on django app throws viewdoesnotexist
exception when trying import modules third-party app (solango, specific). "occasionally", mean enough annoying, minority of requests. solango on app's pythonpath
, can imported reliably through console. error never happens during local development, maybe has server setup (the app uses apache + mod_wsgi in daemon mode).
here's stack trace showing error occurring in admin (although occurs on pretty every page on site):
traceback: file "/home/nybooks/ve/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) file "/home/nybooks/ve/lib/python2.5/site-packages/django/contrib/admin/sites.py" in root 445. return self.index(request) file "/home/nybooks/ve/lib/python2.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) file "/home/nybooks/ve/lib/python2.5/site-packages/django/contrib/admin/sites.py" in index 342. context_instance=template.requestcontext(request) file "/home/nybooks/ve/lib/python2.5/site-packages/django/shortcuts/__init__.py" in render_to_response 20. return httpresponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/loader.py" in render_to_string 108. return t.render(context_instance) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 178. return self.nodelist.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 778. bits.append(self.render_node(node, context)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render_node 791. return node.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/loader_tags.py" in render 97. return compiled_parent.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 178. return self.nodelist.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 778. bits.append(self.render_node(node, context)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render_node 791. return node.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/loader_tags.py" in render 97. return compiled_parent.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 178. return self.nodelist.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 778. bits.append(self.render_node(node, context)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render_node 791. return node.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/defaulttags.py" in render 245. return self.nodelist_true.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 778. bits.append(self.render_node(node, context)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render_node 791. return node.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/defaulttags.py" in render 255. return self.nodelist_true.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 778. bits.append(self.render_node(node, context)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render_node 791. return node.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/loader_tags.py" in render 24. result = self.nodelist.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render 778. bits.append(self.render_node(node, context)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/__init__.py" in render_node 791. return node.render(context) file "/home/nybooks/ve/lib/python2.5/site-packages/django/template/defaulttags.py" in render 372. url = reverse(self.view_name, args=args, kwargs=kwargs) file "/home/nybooks/ve/lib/python2.5/site-packages/django/core/urlresolvers.py" in reverse 265. *args, **kwargs))) file "/home/nybooks/ve/lib/python2.5/site-packages/django/core/urlresolvers.py" in reverse 238. possibilities = self.reverse_dict.getlist(lookup_view) file "/home/nybooks/ve/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 165. name in pattern.reverse_dict: file "/home/nybooks/ve/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 173. lookups.appendlist(pattern.callback, (bits, p_pattern)) file "/home/nybooks/ve/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_callback 134. raise viewdoesnotexist, "could not import %s. error was: %s" % (mod_name, str(e)) exception type: viewdoesnotexist @ /admin/ exception value: not import solango.views. error was: cannot import name settings
any ideas on what's causing problem, or @ least how can go debugging it?
your web server out of file descriptors. reconfigure mod_wsgi daemon mode.
Comments
Post a Comment