def sync_db(): """Quietly runs `syncdb` management command""" show(yellow("Synchronising database")) run_django_cmd("syncdb", args="--noinput") run_django_cmd("migrate", args="--noinput")
def compile_messages(): """Runs `compilemessages` management command""" show(yellow("Compiling translation messages")) run_django_cmd("compilemessages")
def collect_staticfiles(): """Quietly runs `collectstatic` management command""" show(yellow("Collecting static files")) run_django_cmd("collectstatic", args="--noinput")