Django - Did you forget to register or load this tag?

前端 未结 9 2072
我寻月下人不归
我寻月下人不归 2020-12-30 00:04

I\'ve created a custom tag that I want to use, but Django can\'t seem to find it. My templatetags directory is set up like this:

pygmentize

9条回答
  •  情话喂你
    2020-12-30 00:16

    {% load static %}
    My image
    

    in your templates, use the static template tag to build the URL for the given relative path using the configured STATICFILES_STORAGE.

提交回复
热议问题