mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
conf migration
This commit is contained in:
@@ -355,7 +355,7 @@ def how_many(doctype):
|
||||
def install():
|
||||
print "Creating Fresh Database..."
|
||||
from webnotes.install_lib.install import Installer
|
||||
import conf
|
||||
from webnotes import conf
|
||||
inst = Installer('root')
|
||||
inst.import_from_db(conf.demo_db_name, verbose = 1)
|
||||
|
||||
@@ -414,4 +414,4 @@ def import_data(dt, submit=False, overwrite=False):
|
||||
if submit:
|
||||
webnotes.form_dict["params"] = json.dumps({"_submit": 1})
|
||||
webnotes.uploaded_file = os.path.join(os.path.dirname(__file__), "demo_docs", doctype+".csv")
|
||||
upload(overwrite=overwrite)
|
||||
upload(overwrite=overwrite)
|
||||
|
||||
Reference in New Issue
Block a user