Skip to main content

Django datahooks

Project description

django_datahooks

Note: this package is experimental

Installation

pip install django_datahooks

Usage

This module auto detects modules in your django apps at .datahooks.* and scans for classes extending django_datahooks.DataProvider to makes them available for the manage.py generate_data <provider> command.

Example:

from django.core.management import call_command
from django_datahooks import DataProvider


class PagesProvider(DataProvider):
    name = "pages"

    def run(self, **options):
        # Run creation commands

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-datahooks-0.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

django_datahooks-0.0.1-py2.py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 2 Python 3

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