diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 16d1c394e55..a588e752594 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -2,7 +2,6 @@ import django from optparse import OptionParser import os import sys -import textwrap # For backwards compatibility: get_version() used to be in this module. get_version = django.get_version diff --git a/django/core/management/base.py b/django/core/management/base.py index fb43895b51f..221def32aa7 100644 --- a/django/core/management/base.py +++ b/django/core/management/base.py @@ -49,13 +49,13 @@ class BaseCommand(object): version=self.get_version(), option_list=self.option_list) - def print_help(self, args): - parser = self.create_parser(args[0]) + def print_help(self, argv): + parser = self.create_parser(argv[0]) parser.print_help() - def run(self, args): - parser = self.create_parser(args[0]) - (options, args) = parser.parse_args(args[1:]) + def run(self, argv): + parser = self.create_parser(argv[0]) + options, args = parser.parse_args(argv[1:]) if options.settings: os.environ['DJANGO_SETTINGS_MODULE'] = options.settings if options.pythonpath: