Skip to main content

Django deployment tool

Project description

django-fab-deploy is a collection of Fabric scripts for deploying and managing django projects on Debian/Ubuntu servers. License is MIT.

Please read the docs for more info.

CHANGES

0.6.1 (2011-03-16)

  • verify_exists argument of fab_deploy.utils.upload_config_template function was renamed to skip_unexistent;

  • fab_deploy.utils.upload_config_template now passes all extra kwargs directly to fabric’s upload_template (thanks Vladimir Mihailenco);

  • fab_deploy.virtualenv.pip_setup_conf command for uploading pip.conf (thanks Vladimir Mihailenco);

  • fab_deploy.deploy.push no longer calls ‘synccompress’ management command;

  • fab_deploy.deploy.push accepts ‘before_restart’ keyword argument - that’s a callable that will be executed just before code reload;

  • fixed regression in fab_deploy.deploy.push command: ‘notest’ argument was incorrectly renamed to ‘test’;

  • customization docs are added.

0.6 (2011-03-11)

  • custom project layouts support (thanks Vladimir Mihailenco): standard project layout is no longer required; if the project has pip requirements file(s) and a folder with web server config templates it should be possible to use django-fab-deploy for deployment;

  • git uploads support (thanks Vladimir Mihailenco);

  • lxml installation is fixed;

  • sqlite deployments are supported (for testing purposes).

If you are planning to migrate to non-default project layout, update the config templates:

  • in apache.config and nginx.config: replace {{ SRC_DIR }} with {{ PROJECT_DIR }}

  • in django_wsgi.py: replace {{ SRC_DIR }} with {{ PROJECT_DIR }} and make sure DJANGO_SETTINGS_MODULE doesn’t contain INSTANCE_NAME:

    os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

0.5.1 (2011-02-25)

  • Python 2.5 support for local machine (it was always supported on servers). Thanks Den Ivanov.

0.5 (2011-02-23)

  • OS is now auto-detected;

  • Ubuntu 10.10 maverick initial support (needs better testing?);

  • fabtest package is extracted from the test suite;

  • improved tests;

  • fab_deploy.system.ssh_add_key can now add ssh key even if is is the first key for user;

  • ‘print’ calls are replaced with ‘puts’ calls in fabfile commands;

  • django management commands are not executed if they are not available.

You’ll probably want to remove env.conf.OS option from your fabfile.

If you’re planning to deploy existing project to Ubuntu, add NameVirtualHost 127.0.0.1:{{ APACHE_PORT }} line to the top of your config_templates/apache.conf or delete the templates and run django-fab-deploy config_templates again.

0.4.2 (2011-02-16)

  • tests are included in source distribution

0.4.1 (2011-02-14)

  • don’t trigger mysql 5.1 installation on Lenny

0.4 (2011-02-13)

  • env.conf.VCS: mercurial is no longer required;

  • undeploy command now removes virtualenv.

0.3 (2011-02-12)

  • Debian Squeeze support;

  • the usage of env.user is discouraged;

  • fab_deploy.utils.print_env command

  • fab_deploy.deploy.undeploy command

  • better run_as implementation

In order to upgrade from 0.2 please remove any usages of env.user from the code, e.g. before upgrade:

def my_site():
    env.hosts = ['example.com']
    env.user = 'foo'
    #...

After upgrade:

def my_site():
    env.hosts = ['foo@example.com']
    #...

0.2 (2011-02-09)

  • Apache ports are now managed automatically;

  • default threads count is on par with mod_wsgi’s default value;

  • env.conf is converted to _AttributeDict by fab_deploy.utils.update_env.

This release is backwards-incompatible with 0.1.x because of apache port handling changes. In order to upgrade,

  • remove the first line (‘Listen …’) from project’s config_templates/apache.config;

  • remove APACHE_PORT settings from project’s fabfile.py;

  • run fab setup_web_server from the command line.

0.1.2 (2011-02-07)

  • manual config copying is no longer needed: there is django-fab-deploy script for that

0.1.1 (2011-02-06)

  • cleaner internals;

  • less constrains on project structure, easier installation;

  • default web server config improvements;

  • linux user creation;

  • non-interactive mysql installation (thanks Andrey Rahmatullin);

  • new documentation.

0.0.11 (2010-01-27)

  • fab_deploy.crontab module;

  • cleaner virtualenv management;

  • inside_project decorator.

this is the last release in 0.0.x branch.

0.0.8 (2010-12-27)

Bugs with multiple host support, backports URL and stray ‘pyc’ files are fixed.

0.0.6 (2010-08-29)

A few bugfixes and docs improvements.

0.0.2 (2010-08-04)

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-fab-deploy-0.6.1.tar.gz (55.8 kB view details)

Uploaded Source

File details

Details for the file django-fab-deploy-0.6.1.tar.gz.

File metadata

File hashes

Hashes for django-fab-deploy-0.6.1.tar.gz
Algorithm Hash digest
SHA256 72eea5bbf908df5f961163f451cb1ca83f57e25112dac6e69ecb6dc59bf902d2
MD5 8a73eb6bfe76acd7cb74dfb00a8905fa
BLAKE2b-256 6263f44d9ae704ba698c71366b7615022f3267dc02c15c1b7d24c831ee59533b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page