If you are trying to pass arguments and variables to a controller, then you should use URL like this:
URL('controller', 'function', args=['arg1', 'arg2'], vars={'var1': 'value1', 'var2': 'value2'}) Notice that args takes a list [ ], and vars takes a dictionary { }, even if you only have one arg or var, you need the brackets/braces.