Skip to content

cosmocode/cosmogo

Repository files navigation

Django Helpers from CosmoCode

init-db

To use the init-db command create an init-db.py file in your app's command module. Import the InitDBCommand class and create a class Command inheriting from the InitDBCommand. You can add your needed fixtures or overwrite the defaults for the parameters like so:

from cosmogo.commad import InitDBCommand


class Command(InitDBCommand):
    FIXTURES = (
        'fixture-one.json',
        ...
    )
    DEFAULTS = {
        'interactive': False,
        ...
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published