我在我的应用程序中创建了一个templatetags文件夹,其中有一个活动.py在里面,Django找不到它,即使应用程序在已安装的应用程序中:
''active'' is not a valid tag library: Template library 'active' not found, tried
django.templatetags.'active',website.home.templatetags.'active',
django_extensions.templatetags.'active',django.contrib.flatpages.templatetags.'active',
django.contrib.staticfiles.templatetags.'active',
django.contrib.admin.templatetags.'active'
您可能试图load you template tags这样做:
试试这个:
^{pr2}$相关问题 更多 >
编程相关推荐