def run_syncdb():
    """
    Runs `./manage.py syncdb --migrate` on the given server.

    Usage::

        fab <server> run_syncdb

    """
    with cd(settings.FAB_SETTING('SERVER_PROJECT_ROOT')):
        if StrictVersion(django.get_version()) < StrictVersion('1.7'):
            run_workon('python{} manage.py syncdb --migrate --noinput'.format(
                PYTHON_VERSION))
        else:
            run_workon('python{} manage.py migrate'.format(PYTHON_VERSION))
def run_syncdb ( ) : with cd ( settings . FAB_SETTING ( 'SERVER_PROJECT_ROOT' ) ) : if StrictVersion ( django . get_version ( ) ) < StrictVersion ( '1.7' ) : run_workon ( 'python{} manage.py syncdb --migrate --noinput' . format ( PYTHON_VERSION ) ) else : run_workon ( 'python{} manage.py migrate' . format ( PYTHON_VERSION ) )
Runs `./manage.py syncdb --migrate` on the given server.

    Usage::

        fab <server> run_syncdb