After installing app into new site, I started site using:
bench use site-name
In the browser, on localhost:8000, getting Run Time Error. Complete error message below.
RuntimeError
RuntimeError: no object bound to conf
Traceback (most recent call last)
File “/Users/haitham/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 591, in call
return self.app(environ, start_response)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”, line 591, in call
return self.app(environ, start_response)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 224, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 290, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/Users/haitham/frappe-bench/apps/frappe/frappe/app.py”, line 113, in application
response = frappe.website.render.render(“message”, http_status_code=http_status_code)
File “/Users/haitham/frappe-bench/apps/frappe/frappe/website/render.py”, line 22, in render
path = resolve_path(path.strip("/ "))
File “/Users/haitham/frappe-bench/apps/frappe/frappe/website/render.py”, line 152, in resolve_path
path = resolve_from_map(path)
File “/Users/haitham/frappe-bench/apps/frappe/frappe/website/render.py”, line 158, in resolve_from_map
for r in frappe.get_hooks(“website_route_rules”)])
File “/Users/haitham/frappe-bench/apps/frappe/frappe/init.py”, line 716, in get_hooks
hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))
File “/Users/haitham/frappe-bench/apps/frappe/frappe/init.py”, line 196, in cache
redis_server = RedisWrapper.from_url(conf.get(“cache_redis_server”) or “redis://localhost:11311”)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 338, in getattr
return getattr(self._get_current_object(), name)
File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 301, in _get_current_object
raise RuntimeError(‘no object bound to %s’ % self.name)
RuntimeError: no object bound to conf
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the “Traceback” headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
dump(obj) dumps all that’s known about the object