AppData\Roaming\Python\Python36\site-packages\pygal\_compat.py", line 62, in to_unicodeAttributeError: 'NoneType' object has no attribute 'decode'
*无论如何,如果我将部分代码更改为此,错误将消失,*但是图表中的</
views.FrontEndTestingStart.as_view()class FrontEndTestingStart(APIView):AttributeError: 'NoneType' object has no attribute 'FrontEndTestingStart'
就好像导入时views.py会返回None一样。我的目录中有一个__init__.py