Module Expr Str Import alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias Assign AttributeStore NameLoad attr ListLoad Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Str Assign NameStore Str Assign NameStore IfExp NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Expr Call NameLoad BinOpAdd BinOpAdd BinOpMod Str AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad With Call NameLoad AttributeLoad NameLoad attr body With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body If Call NameLoad AttributeLoad NameLoad attr body Return With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad Str With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Expr Str If NameLoad body With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse With Call NameLoad keyword NameLoad body Expr Call NameLoad Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Expr Str With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assert BoolOpAnd CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call NameLoad AttributeLoad NameLoad attr body With Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults NameLoad body Expr Str With Call NameLoad AttributeLoad NameLoad attr body With Call NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str NameLoad body Expr Call NameLoad Str Expr Call NameLoad Str orelse Expr Call NameLoad Str If NameLoad body Expr Call NameLoad BinOpMod Str NameLoad orelse Expr Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Expr Str With Call NameLoad keyword NameLoad body Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad decorator_list NameLoad
N/A N/A 
Starter fabfile for deploying the {{ project_name }} project.

Change all the things marked CHANGEME. Other things can be left at their
defaults if you are happy with the default layout.
 N/A posixpath fabric.api run local env settings cd task fabric.contrib.files exists fabric.operations _prefix_commands _prefix_env_vars N/A N/A env hosts N/A user@{{ project_name }}.example.com N/A N/A env code_dir /srv/www/{{ project_name }} N/A N/A env project_dir /srv/www/{{ project_name }}/{{ project_name }} N/A N/A env static_root /srv/www/{{ project_name }}/static/ N/A N/A env virtualenv /srv/www/{{ project_name }}/.virtualenv N/A N/A env code_repo git@github.com:user/{{project_name}}.git N/A N/A env django_settings_module {{ project_name }}.settings N/A PYTHON_BIN python2.7 N/A PYTHON_PREFIX N/A PYTHON_FULL_PATH N/A PYTHON_PREFIX N/A %s/bin/%s N/A PYTHON_PREFIX PYTHON_BIN PYTHON_BIN N/A DJANGO_SERVER_RESTART False virtualenv N/A N/A venv_dir N/A N/A N/A 
    Context manager that establishes a virtualenv to use.
     N/A N/A settings venv venv_dir N/A run_venv N/A N/A command N/A kwargs N/A N/A 
    Runs a command in a virtualenv (which has been specified using
    the virtualenv context manager
     N/A N/A run N/A N/A N/A source %s/bin/activate N/A env virtualenv  &&  command kwargs N/A install_dependencies N/A N/A N/A N/A N/A N/A ensure_virtualenv N/A N/A virtualenv N/A env virtualenv N/A N/A N/A cd N/A env code_dir N/A N/A N/A run_venv pip install -r requirements/production.txt N/A ensure_virtualenv N/A N/A N/A N/A N/A N/A exists N/A env virtualenv N/A N/A N/A N/A cd N/A env code_dir N/A N/A N/A run N/A virtualenv --no-site-packages --python=%s %s N/A PYTHON_BIN N/A env virtualenv N/A N/A run N/A echo %s > %s/lib/%s/site-packages/projectsource.pth N/A N/A env project_dir N/A env virtualenv PYTHON_BIN N/A ensure_src_dir N/A N/A N/A N/A N/A N/A N/A exists N/A env code_dir N/A N/A N/A run N/A mkdir -p %s N/A env code_dir N/A N/A cd N/A env code_dir N/A N/A N/A N/A exists N/A N/A posixpath join N/A env code_dir .git N/A N/A N/A run N/A git clone %s . N/A env code_repo N/A push_sources N/A N/A N/A N/A N/A 
    Push source code to server
     N/A N/A ensure_src_dir N/A N/A local git push origin master N/A N/A cd N/A env code_dir N/A N/A N/A run git pull origin master N/A run_tests N/A N/A N/A N/A N/A  Runs the Django test suite as is.   N/A N/A local ./manage.py test N/A task version N/A N/A N/A N/A N/A  Show last commit to the deployed repo.  N/A N/A cd N/A env code_dir N/A N/A N/A run git log -1 N/A task uname N/A N/A N/A N/A N/A  Prints information about the host.  N/A N/A run uname -a N/A task webserver_stop N/A N/A N/A N/A N/A 
    Stop the webserver that is running the Django instance
     N/A N/A run service apache2 stop N/A task webserver_start N/A N/A N/A N/A N/A 
    Starts the webserver that is running the Django instance
     N/A N/A run service apache2 start N/A task webserver_restart N/A N/A N/A N/A N/A 
    Restarts the webserver that is running the Django instance
     N/A DJANGO_SERVER_RESTART N/A N/A N/A cd N/A env code_dir N/A N/A N/A run N/A touch %s/wsgi.py N/A env project_dir N/A N/A N/A settings warn_only True N/A N/A N/A webserver_stop N/A N/A webserver_start N/A task restart N/A N/A N/A N/A N/A  Restart the wsgi process  N/A N/A cd N/A env code_dir N/A N/A N/A run N/A touch %s/{{ project_name }}/wsgi.py N/A env code_dir N/A build_static N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A env static_root strip N/A N/A N/A N/A env static_root strip / N/A N/A virtualenv N/A env virtualenv N/A N/A N/A cd N/A env code_dir N/A N/A N/A run_venv ./manage.py collectstatic -v 0 --clear --noinput N/A N/A run N/A chmod -R ugo+r %s N/A env static_root N/A first_deployment_mode N/A N/A N/A N/A N/A 
    Use before first deployment to switch on fake south migrations.
     N/A N/A env initial_deploy True N/A task update_database N/A N/A app N/A None N/A N/A 
    Update the database (run the migrations)
    Usage: fab update_database:app_name
     N/A N/A virtualenv N/A env virtualenv N/A N/A N/A cd N/A env code_dir N/A N/A N/A getattr env initial_deploy False N/A N/A N/A run_venv ./manage.py syncdb --all N/A N/A run_venv ./manage.py migrate --fake --noinput N/A N/A N/A run_venv ./manage.py syncdb --noinput N/A app N/A N/A N/A run_venv N/A ./manage.py migrate %s --noinput app N/A N/A N/A run_venv ./manage.py migrate --noinput N/A task sshagent_run N/A N/A cmd N/A N/A N/A 
    Helper function.
    Runs a command with SSH agent forwarding enabled.

    Note:: Fabric (and paramiko) can't forward your SSH agent.
    This helper uses your system's ssh to do so.
     N/A wrapped_cmd N/A _prefix_commands N/A _prefix_env_vars cmd remote N/A N/A N/A N/A host port N/A N/A N/A env host_string split : N/A N/A local N/A ssh -p %s -A %s@%s '%s' N/A port N/A env user host wrapped_cmd N/A N/A N/A ValueError N/A N/A N/A local N/A ssh -A %s@%s '%s' N/A N/A env user N/A env host_string wrapped_cmd N/A task deploy N/A N/A N/A N/A N/A 
    Deploy the project.
     N/A N/A settings warn_only True N/A N/A N/A webserver_stop N/A N/A push_sources N/A N/A install_dependencies N/A N/A update_database N/A N/A build_static N/A N/A webserver_start N/A task