About TemplateSyntaxError

Kode Cooper avatarKode Cooper created an issue

I followed the instructions and put the APP in my setting.py. When I ran the program, i got the error:

Environment:

Request Method: GET Request URL: http://localhost:8000/admin/

Django Version: 1.3.1 Python Version: 2.7.2 Installed Applications: ['admintools_bootstrap', 'admin_tools', 'admin_tools.menu', 'django.contrib.admin', 'django.contrib.auth', 'django.templatetags', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.humanize', 'pinax.templatetags', 'pinax.apps.signup_codes', 'pinax_theme_bootstrap', 'notification', 'staticfiles', 'compressor', 'debug_toolbar', 'mailer', 'django_openid', 'timezones', 'emailconfirmation', 'announcements', 'pagination', 'idios', 'metron', 'PIL', 'onlineuser', 'widget_tweaks', 'common', 'protocol', 'api', 'account', 'profiles', 'activity'] Installed Middleware: ['django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_openid.consumer.SessionConsumer', 'django.contrib.messages.middleware.MessageMiddleware', 'account.middleware.LocaleMiddleware', 'pagination.middleware.PaginationMiddleware', 'pinax.middleware.security.HideSensistiveFieldsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'onlineuser.middleware.OnlineUserMiddleware']

Traceback: File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, callback_args, callback_kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/contrib/admin/sites.py" in wrapper 214. return self.admin_view(view, cacheable)(*args, kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view 93. response = view_func(request, args, kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 79. response = view_func(request, *args, kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner 196. return self.login(request) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 79. response = view_func(request, args, kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/contrib/admin/sites.py" in login 331. return login(request, defaults) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view 93. response = view_func(request, args, kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 79. response = view_func(request, *args, kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/contrib/auth/views.py" in login 69. context_instance=RequestContext(request, current_app=current_app)) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/shortcuts/init.py" in render_to_response 20. return HttpResponse(loader.render_to_string(*args, kwargs), httpresponse_kwargs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader.py" in render_to_string 188. return t.render(context_instance) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in render 123. return self._render(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render 60. return self.nodelist.render(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in render 744. bits.append(self.render_node(node, context)) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in render_node 757. return node.render(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader_tags.py" in render 127. return compiled_parent._render(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render 60. return self.nodelist.render(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in render 744. bits.append(self.render_node(node, context)) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in render_node 757. return node.render(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader_tags.py" in render 105. compiled_parent = self.get_parent(context) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader_tags.py" in get_parent 102. return get_template(parent) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader.py" in get_template 157. template, origin = find_template(template_name) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader.py" in find_template 134. source, display_name = loader(name, dirs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader.py" in call 42. return self.load_template(template_name, template_dirs) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader.py" in load_template 48. template = get_template_from_string(source, origin, template_name) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string 168. return Template(source, origin, name) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/debug_toolbar/panels/template.py" in new_template_init 35. old_template_init(self, template_string, origin, name) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in init 108. self.nodelist = compile_string(template_string, origin) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in compile_string 136. return parser.parse() File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/base.py" in parse 239. compiled_result = compile_func(self, token) File "/Users/monalisir/Work/server-env/lib/python2.7/site-packages/django/template/defaulttags.py" in load 1054. (taglib, e))

Exception Type: TemplateSyntaxError at /admin/ Exception Value: 'theming_tags' is not a valid tag library: Template library theming_tags not found, tried django.templatetags.theming_tags,admintools_bootstrap.templatetags.theming_tags,admin_tools.menu.templatetags.theming_tags,django.contrib.admin.templatetags.theming_tags,django.contrib.humanize.templatetags.theming_tags,pinax.templatetags.templatetags.theming_tags,pinax_theme_bootstrap.templatetags.theming_tags,staticfiles.templatetags.theming_tags,compressor.templatetags.theming_tags,timezones.templatetags.theming_tags,announcements.templatetags.theming_tags,pagination.templatetags.theming_tags,idios.templatetags.theming_tags,metron.templatetags.theming_tags,widget_tweaks.templatetags.theming_tags

Comments (2)

  1. kiilo

    same problem here ... is it related to some static files? - setup doesnt give hints where to find related static files.

  2. Kode Cooper

    he there, it seems that i did not install django-admin-tool first which is the package admintools_bootstrap required..

    oops.pls close the issue.thanks.

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.