mirror of https://github.com/django/django.git
Renamed 'args' variables in django.core.management to 'argv' to be more clear, and removed an unneeded import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
12146f34fd
commit
c554858f6b
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue