Google Calendar API stops Django from starting

前端 未结 2 1067
忘掉有多难
忘掉有多难 2021-02-20 05:58

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

相关标签:
2条回答
  • 2021-02-20 06:51

    This error is caused because Django is not able to complete the authentication process required by the API.

    For me, the error was in token.json file. Clearing it and write a script to call the API again corrected the flow procedure and hence the server resumed.

    0 讨论(0)
  • 2021-02-20 06:54

    Replace:

    flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
    

    with

     flags = tools.argparser.parse_args([])
    
    0 讨论(0)
提交回复
热议问题