I have a error. When i set up “develop_mode”
To create models, you must set developer_mode as 1 in the site_config.json file.
{
“db_name”: “library”,
“db_password”: “v3qHDeVKvWVi7s97”,
“developer_mode”: 1
}
but I have a error.
i can’t start or restart bench .
RuntimeError
RuntimeError: no object bound to conf
Traceback (most recent call last)
File “/root/frappe-bench/apps/frappe/frappe/middlewares.py”,
line 15,
in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/root/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”,
line 588,
in call
return self.app(environ, start_response)
File “/root/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py”,
line 588,
in call
return self.app(environ, start_response)
File “/root/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”,
line 224,
in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/root/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”,
line 286,
in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/root/frappe-bench/apps/frappe/frappe/app.py”,
line 78,
in application
response = frappe.website.render.render(“message”, http_status_code=http_status_code)
File “/root/frappe-bench/apps/frappe/frappe/website/render.py”,
line 47,
in render
data = render_page(path)
File “/root/frappe-bench/apps/frappe/frappe/website/render.py”,
line 96,
in render_page
if can_cache():
File “/root/frappe-bench/apps/frappe/frappe/website/utils.py”,
line 29,
in can_cache
return not (frappe.conf.disable_website_cache or no_cache)
File “/root/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”,
line 338,
in getattr
return getattr(self._get_current_object(), name)
File “/root/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