I have a Django (1.9.1) project that was working just fine until I added the code provided by Google Calendar API documentation to one of my apps.
This code also works f
Replace:
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
with
flags = tools.argparser.parse_args([])