Skip to main content

A fabfile to ease many tasks during development and deployment of Django projects.

Project description

A fabfile to ease many tasks during development and deployment of Django projects.

Installation

Just add django-development-fabfile to your requirements.txt and install it via pip install -r requirements.txt.

Then create the following files in your project root (usually the folder where your manage.py file resides):

fabfile/
-- __init__.py
-- your_own_fab_tasks.py

If you are on Django < 1.6, put the following code in your fabfile/__init__.py:

# flake8: noqa
from myproject import settings
from django.core.management import setup_environ
setup_environ(settings)

from development_fabfile.fabfile import *
from .your_own_fab_tasks import *

If you are on Django >=1.6, put the following code in your fabfile/__init__.py:

import os

os.environ.setdefault(
    "DJANGO_SETTINGS_MODULE", "myproject.settings")

from development_fabfile.fabfile import *
from .your_own_fab_tasks import *

In your settings.py at the very bottom add the following:

from fabfile_settings import *  # NOQA

Then create a fabfile_settings.py next to your settings.py and add all necessary settings. As a starting point you can copy the fabfile_settings.py.sample of this project and change all values to your project.

Python 3

Please note, that fabric isn’t working with Python 3. Please use fabric3 instead.

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-development-fabfile-2.14.12.tar.gz (12.6 kB view details)

Uploaded Source

File details

Details for the file django-development-fabfile-2.14.12.tar.gz.

File metadata

File hashes

Hashes for django-development-fabfile-2.14.12.tar.gz
Algorithm Hash digest
SHA256 b2a20965a7803234b9658bfa5b60c604c7d6ad9e4a28acb62628a1c7ef91b62a
MD5 972e016c5bd29692d3191c54eac20be0
BLAKE2b-256 277ad0e1459ba4ba1585e751efe9f073c263479605ec0f4f5727356d886ae816

See more details on using hashes here.

Supported by

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