Merge pull request #2313 from nicozanf/missing_app
Fix errors with unwanted new app folder
This commit is contained in:
+4
-1
@@ -241,13 +241,16 @@ def run(
|
|||||||
if not cron_job and not scheduler_job and \
|
if not cron_job and not scheduler_job and \
|
||||||
sys.stdin and not sys.stdin.name == '/dev/null':
|
sys.stdin and not sys.stdin.name == '/dev/null':
|
||||||
confirm = raw_input(
|
confirm = raw_input(
|
||||||
'application %s does not exist, create (y/n)?' % a)
|
'application %s does not exist, create (y/N)?' % a)
|
||||||
else:
|
else:
|
||||||
logging.warn('application does not exist and will not be created')
|
logging.warn('application does not exist and will not be created')
|
||||||
return
|
return
|
||||||
if confirm.lower() in ('y', 'yes'):
|
if confirm.lower() in ('y', 'yes'):
|
||||||
os.mkdir(adir)
|
os.mkdir(adir)
|
||||||
fileutils.create_app(adir)
|
fileutils.create_app(adir)
|
||||||
|
else:
|
||||||
|
logging.warn('application folder does not exist and has not been created as requested')
|
||||||
|
return
|
||||||
|
|
||||||
if force_migrate:
|
if force_migrate:
|
||||||
c = 'appadmin' # Load all models (hack already used for appadmin controller)
|
c = 'appadmin' # Load all models (hack already used for appadmin controller)
|
||||||
|
|||||||
Reference in New Issue
Block a user