我创建了一个带有自定义模板标签的 django 应用程序。在我的目录中,我有一个文件夹
/模板标签/
它们是从那里加载的,但我在部署服务器上收到以下错误:
'solo_tags' is not a valid tag library: Template library solo_tags not found, tried django.templatetags.solo_tags,localeurl.templatetags.solo_tags,django.contrib.staticfiles.templatetags.solo_tags,django.contrib.admin.templatetags.solo_tags
Request Method: GET
Request URL: http://siaab.alwaysdata.net/en/about/mission/
Django Version: 1.4.3
Exception Type: TemplateSyntaxError
Exception Value:
'solo_tags' is not a valid tag library: Template library solo_tags not found, tried django.templatetags.solo_tags,localeurl.templatetags.solo_tags,django.contrib.staticfiles.templatetags.solo_tags,django.contrib.admin.templatetags.solo_tags
Exception Location: /usr/local/alwaysdata/python/django/1.4.3/django/template/defaulttags.py in load, line 1043
Python Executable: /usr/languages/python/2.6/bin/python
Python Version: 2.6.6
Python Path:
['/home/modules/',
'/home/siaab',
'/home/siaab/abengineering',
'/home/siaab/abengineering/public',
'/home/siaab/modules/django_localeurl-1.5-py2.6.egg',
'/home/siaab/modules/django_solo-1.0.0-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/pip-0.4-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/Paste-1.6-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/trac-0.10.5-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/lamson-1.0-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/python_daemon-1.5.5-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/mock-0.7.0b2-py2.6.egg',
'/usr/local/lib/python2.6/site-packages/lockfile-0.8-py2.6.egg',
'/home/siaab/modules',
'/usr/local/alwaysdata/python/django/1.4.3',
'/usr/languages/python/2.6/lib/python26.zip',
'/usr/languages/python/2.6/lib/python2.6',
'/usr/languages/python/2.6/lib/python2.6/plat-linux2',
'/usr/languages/python/2.6/lib/python2.6/lib-tk',
'/usr/languages/python/2.6/lib/python2.6/lib-old',
'/usr/languages/python/2.6/lib/python2.6/lib-dynload',
'/usr/languages/python/2.6/lib/python2.6/site-packages',
'/usr/local/lib/python2.6/site-packages',
'/usr/local/lib/python2.6/site-packages/PIL',
'/usr/lib/python2.6/site-packages']
Server time: Sun, 1 Sep 2013 01:18:38 +0300
请帮忙!