본문 바로가기

web/Django

django templatetags error "template libarary not fount, tried django.templatetags.."




if you have as error


templatesyntaxerror is not a valid tag library: template libarary not fount, tried django.templatetags, ........




in settings.py, you should never name the project 'myproj' explicitely. In INSTALLED_APPS, just use 'myapp'. Also, you should have this :



TEMPLATE_LOADERS = (

    'django.template.loaders.filesystem.Loader',

    'django.template.loaders.app_directories.Loader',

    'django.template.loaders.eggs.Loader',

)