刚开始使用 Heroku,我在学习 Python 教程时已经遇到了障碍。在配置数据库之前,每一步都非常简单。 执行后,heroku run python manage.py migrate我应该能够在添加/db到 URL 末尾后看到数据库,但是我被发送到一个错误页面,如下所示:
TemplateSyntaxError at /db/
'staticfiles' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
cache
i18n
l10n
log
static
tz
Request Method: GET
Request URL: https://morning-oasis-00207.herokuapp.com/db/
Django Version: 3.0
Exception Type: TemplateSyntaxError
Exception Value:
'staticfiles' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
cache
i18n
l10n
log
static
tz
Exception Location: /app/.heroku/python/lib/python3.7/site-packages/django/template/defaulttags.py in find_library, …Run Code Online (Sandbox Code Playgroud)