在启动和运行web应用程序时遇到一些问题。你可以在yx8dxjwh.apps.lair.io上看到这个项目在线运行,但是一旦我把它导入到pyCharm中,我就会看到一个关键的错误。如下所示:
python manage.py runserver
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x04678078>
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\site-packages\airtable\auth.py", line 37, in __init__
self.api_key = api_key or os.environ['AIRTABLE_API_KEY']
File "C:\Program Files (x86)\Python36-32\lib\os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'AIRTABLE_API_KEY'
还有大量的其他错误,但我觉得这是主要的错误,可能会解决其余的错误。
任何帮助都将不胜感激。
发布于 2018-11-23 00:53:28
您没有为AIRTABLE_API_KEY.设置环境变量,您正在使用的SDK默认情况下会利用该环境变量。有关更多信息,请访问:https://airtable-python-wrapper.readthedocs.io/en/master/authentication.html
如果你没有Airtable API密钥,这个链接可以帮助你找到它:https://support.airtable.com/hc/en-us/articles/219046777-How-do-I-get-my-API-key-
https://stackoverflow.com/questions/53424153
复制相似问题