diff --git a/webnotes/boot.py b/webnotes/boot.py
index 80c3dfc823..ae8ee2a7ed 100644
--- a/webnotes/boot.py
+++ b/webnotes/boot.py
@@ -47,6 +47,7 @@ def get_bootinfo():
add_home_page(bootinfo, doclist)
add_allowed_pages(bootinfo)
load_translations(bootinfo)
+ load_conf_settings(bootinfo)
# ipinfo
if webnotes.session['data'].get('ipinfo'):
@@ -66,7 +67,12 @@ def get_bootinfo():
bootinfo['docs'] = compress(bootinfo['docs'])
return bootinfo
-
+
+def load_conf_settings(bootinfo):
+ import conf
+ for key in ['developer_mode']:
+ if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
+
def add_allowed_pages(bootinfo):
bootinfo.page_info = dict(webnotes.conn.sql("""select distinct parent, modified from `tabPage Role`
where role in ('%s')""" % "', '".join(webnotes.get_roles())))