Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

Download files

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

Files for django-datahooks, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_datahooks-0.0.1-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-datahooks-0.0.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page