conf migration

This commit is contained in:
Pratik Vyas
2013-09-21 15:16:47 +05:30
parent 7782e83d33
commit cfed8c44b4
8 changed files with 14 additions and 14 deletions

View File

@@ -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)