Skip to content

Django 1.8+ version command options #16

Open
@rexopl

Description

@rexopl

New django version does not support option_list.
AttributeError: type object 'BaseCommand' has no attribute 'option_list'
Reference: https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/#django.core.management.BaseCommand.option_list

It should get something like:
def add_arguments(self, parser):
parser.add_argument(
'--update',
action='store_true',
dest='update',
default=False,
help='Update exisitng data'
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions