def makemigrations(app=None):
require('srvr', 'path', 'within_virtualenv', provided_by=env.servers)
if env.srvr in ['dev', 'stg', 'liv']:
print(yellow('Do not run makemigrations on the servers'))
return
with cd(env.path), prefix(env.within_virtualenv):
run('./manage.py makemigrations {}'.format(app if app else ''))
评论列表
文章目录