我正在将 Wagtail 和 Google Analytics 与应用程序 wagalytics 集成给我 /admin/analytics/token/ 500 () 和我使用的设置,如自述文件中所示
GA_KEY_FILEPATH = 'project-6408cf73f290.json'
GA_KEY_CONTENT = '关键内容'
GA_VIEW_ID = 'ga:173531812'
请问我哪里错了?
这是我将 JSON 密钥内容与GA_KEY_CONTENT = '{"type": "service_account",...'
AttributeError at /admin/analytics/token/
'dict' object has no attribute 'replace'
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/analytics/token/
Django Version: 1.11.11
Exception Type: AttributeError
Exception Value:
'dict' object has no attribute 'replace'