@task
def webserver_restart():
    """
    Restarts the webserver that is running the Django instance
    """
    if DJANGO_SERVER_RESTART:
        with cd(env.code_dir):
            run(env.project_dir % "touch %s/wsgi.py")
    else:
        with settings(warn_only=True):
            webserver_stop()
        webserver_start()
dataset/ETHPy150Open xenith/django-base-template/fabfile.py/webserver_restart/swapped operands of `%`