小编dyl*_*aur的帖子

遵循 Heroku Python 教程时的 TemplateSyntaxError

刚开始使用 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)

python heroku syntax-error heroku-postgres

8
推荐指数
1
解决办法
306
查看次数

标签 统计

heroku ×1

heroku-postgres ×1

python ×1

syntax-error ×1