def handle(self, addrport='', *args, **options):
            if args:
                raise CommandError('Usage is runserver %s' % self.args)
            if not addrport:
                addr = ''
                port = '8000'
            else:
                try:
                    addr, port = addrport.split(':')
                except ValueError:
                    addr, port = '', addrport
            if not addr:
                addr = '127.0.0.1'

            if not port.isdigit():
                raise CommandError(port % "%r is not a valid port number.")

            use_reloader = options.get('use_reloader', True)
            shutdown_message = options.get('shutdown_message', '')
            quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'

            def inner_run():
                from django.conf import settings
                from django.utils import translation
                print "Validating models..."
                self.validate(display_num_errors=True)
                print "\nDjango version %s, using settings %r" % (django.get_version(), settings.SETTINGS_MODULE)
                print "Development server is running at http://%s:%s/" % (addr, port)
                print "Quit the server with %s." % quit_command

                # django.core.management.base forces the locale to en-us. We should
                # set it up correctly for the first request (particularly important
                # in the "--noreload" case).
                translation.activate(settings.LANGUAGE_CODE)

                try:
                    handler = self.get_handler(*args, **options)
                    run(addr, int(port), handler)
                except WSGIServerException, e:
                    # Use helpful error messages instead of ugly tracebacks.
                    ERRORS = {
                        13: "You don't have permission to access that port.",
                        98: "That port is already in use.",
                        99: "That IP address can't be assigned-to.",
                    }
                    try:
                        error_text = ERRORS[e.args[0].args[0]]
                    except (AttributeError, KeyError):
                        error_text = str(e)
                    sys.stderr.write(self.style.ERROR("Error: %s" % error_text) + '\n')
                    # Need to use an OS exit because sys.exit doesn't work in a thread
                    os._exit(1)
                except KeyboardInterrupt:
                    if shutdown_message:
                        print shutdown_message
                    sys.exit(0)

            if use_reloader:
                from django.utils import autoreload
                autoreload.main(inner_run)
            else:
                inner_run()
dataset/ETHPy150Open jezdez-archive/django-staticfiles/staticfiles/management/commands/runserver.py/Command.handle/swapped operands of `%`