值得注意的是,我正在使用自定义 buildpack来启用使用 node.js 进行咖啡脚本编译。
在包含迁移的更改之后,运行迁移时出现以下错误
Running `./manage.py migrate talent` attached to terminal... up, run.3366
Traceback (most recent call last):
File "./manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
File "/app/lib/python2.7/site-packages/django/core/management/__init__.py", line 1, in <module>
import collections
File "/usr/local/lib/python2.7/collections.py", line 8, in <module>
from _collections import deque, defaultdict
ImportError: No module named _collections
在heroku run bash
shell 会话中摸索了一下之后,我发现打开 python repl 并运行import collections
.