<class 'django.template.TemplateSyntaxError'> | Python 2.7.17: /usr/bin/python Mon Mar 1 04:28:42 2021 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/colourschool/thisisavehicle.com/fcgi.py in run(self=<fcgi.Request object>) |
578 """Runs the handler, flushes the streams, and ends the request.""" |
579 try: |
=> 580 protocolStatus, appStatus = self.server.handler(self) |
581 except: |
582 traceback.print_exc(file=self.stderr) |
protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>> |
/home/colourschool/thisisavehicle.com/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
1264 try: |
1265 try: |
=> 1266 result = self.application(environ, start_response) |
1267 try: |
1268 for data in result: |
result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/colourschool/thisisavehicle.com', 'CONTEXT_PREFIX': '', 'DH_USER': 'colourschool', 'DOCUMENT_ROOT': '/home/colourschool/thisisavehicle.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response> |
/home/colourschool/django/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/colourschool/thisisavehicle.com', 'CONTEXT_PREFIX': '', 'DH_USER': 'colourschool', 'DOCUMENT_ROOT': '/home/colourschool/thisisavehicle.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start_response=<function start_response>) |
237 response = http.HttpResponseBadRequest() |
238 else: |
=> 239 response = self.get_response(request) |
240 |
241 # Apply response middleware |
response undefined, self = <django.core.handlers.wsgi.WSGIHandler object>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
/home/colourschool/django/django_src/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
126 exc_info = sys.exc_info() |
127 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) |
=> 128 return self.handle_uncaught_exception(request, resolver, exc_info) |
129 |
130 def handle_uncaught_exception(self, request, resolver, exc_info): |
self = <django.core.handlers.wsgi.WSGIHandler object>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...f <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver thisisavehicle.urls ^/>, exc_info = (<class 'django.template.TemplateSyntaxError'>, TemplateSyntaxError(u"'vehicle_extras' is not a ...latetags.vehicle_extras, No module named Image",), <traceback object>) |
/home/colourschool/django/django_src/django/core/handlers/base.py in handle_uncaught_exception(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver=<RegexURLResolver thisisavehicle.urls ^/>, exc_info=(<class 'django.template.TemplateSyntaxError'>, TemplateSyntaxError(u"'vehicle_extras' is not a ...latetags.vehicle_extras, No module named Image",), <traceback object>)) |
158 # Return an HttpResponse that displays a friendly error message. |
159 callback, param_dict = resolver.resolve500() |
=> 160 return callback(request, **param_dict) |
161 |
162 def _get_traceback(self, exc_info=None): |
callback = <function server_error>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, param_dict = {} |
/home/colourschool/django/django_src/django/views/defaults.py in server_error(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, template_name='500.html') |
22 """ |
23 t = loader.get_template(template_name) # You need to create a 500.html template. |
=> 24 return http.HttpResponseServerError(t.render(Context({}))) |
25 |
26 def shortcut(request, content_type_id, object_id): |
global http = <module 'django.http' from '/home/colourschool/django/django_src/django/http/__init__.pyc'>, http.HttpResponseServerError = <class 'django.http.HttpResponseServerError'>, t = <django.template.Template object>, t.render = <bound method Template.render of <django.template.Template object>>, global Context = <class 'django.template.context.Context'> |
/home/colourschool/django/django_src/django/template/__init__.py in render(self=<django.template.Template object>, context=[{}]) |
174 def render(self, context): |
175 "Display stage -- can be called many times" |
=> 176 return self.nodelist.render(context) |
177 |
178 def compile_string(template_string, origin): |
self = <django.template.Template object>, self.nodelist = [<ExtendsNode: extends "base.html">], self.nodelist.render = <bound method NodeList.render of [<ExtendsNode: extends "base.html">]>, context = [{}] |
/home/colourschool/django/django_src/django/template/__init__.py in render(self=[<ExtendsNode: extends "base.html">], context=[{}]) |
766 for node in self: |
767 if isinstance(node, Node): |
=> 768 bits.append(self.render_node(node, context)) |
769 else: |
770 bits.append(node) |
bits = [], bits.append = <built-in method append of list object>, self = [<ExtendsNode: extends "base.html">], self.render_node = <bound method NodeList.render_node of [<ExtendsNode: extends "base.html">]>, node = <ExtendsNode: extends "base.html">, context = [{}] |
/home/colourschool/django/django_src/django/template/__init__.py in render_node(self=[<ExtendsNode: extends "base.html">], node=<ExtendsNode: extends "base.html">, context=[{}]) |
779 |
780 def render_node(self, node, context): |
=> 781 return node.render(context) |
782 |
783 class TextNode(Node): |
node = <ExtendsNode: extends "base.html">, node.render = <bound method ExtendsNode.render of <ExtendsNode: extends "base.html">>, context = [{}] |
/home/colourschool/django/django_src/django/template/loader_tags.py in render(self=<ExtendsNode: extends "base.html">, context=[{}]) |
69 |
70 def render(self, context): |
=> 71 compiled_parent = self.get_parent(context) |
72 parent_blocks = dict([(n.name, n) for n in compiled_parent.nodelist.get_nodes_by_type(BlockNode)]) |
73 for block_node in self.nodelist.get_nodes_by_type(BlockNode): |
compiled_parent undefined, self = <ExtendsNode: extends "base.html">, self.get_parent = <bound method ExtendsNode.get_parent of <ExtendsNode: extends "base.html">>, context = [{}] |
/home/colourschool/django/django_src/django/template/loader_tags.py in get_parent(self=<ExtendsNode: extends "base.html">, context=[{}]) |
66 raise TemplateSyntaxError, "Template %r cannot be extended, because it doesn't exist" % parent |
67 else: |
=> 68 return get_template_from_string(source, origin, parent) |
69 |
70 def render(self, context): |
global get_template_from_string = <function get_template_from_string>, source = u'{% load vehicle_extras %}\n<!DOCTYPE HTML PUBLIC ...iew();\n} catch(err) {}</script>\n</body>\n</html>\n\n', origin = None, parent = u'base.html' |
/home/colourschool/django/django_src/django/template/loader.py in get_template_from_string(source=u'{% load vehicle_extras %}\n<!DOCTYPE HTML PUBLIC ...iew();\n} catch(err) {}</script>\n</body>\n</html>\n\n', origin=None, name=u'base.html') |
87 handling template inheritance recursively. |
88 """ |
=> 89 return Template(source, origin, name) |
90 |
91 def render_to_string(template_name, dictionary=None, context_instance=None): |
global Template = <class 'django.template.Template'>, source = u'{% load vehicle_extras %}\n<!DOCTYPE HTML PUBLIC ...iew();\n} catch(err) {}</script>\n</body>\n</html>\n\n', origin = None, name = u'base.html' |
/home/colourschool/django/django_src/django/template/__init__.py in __init__(self=<django.template.Template object>, template_string=u'{% load vehicle_extras %}\n<!DOCTYPE HTML PUBLIC ...iew();\n} catch(err) {}</script>\n</body>\n</html>\n\n', origin=None, name=u'base.html') |
164 if settings.TEMPLATE_DEBUG and origin is None: |
165 origin = StringOrigin(template_string) |
=> 166 self.nodelist = compile_string(template_string, origin) |
167 self.name = name |
168 |
self = <django.template.Template object>, self.nodelist undefined, global compile_string = <function compile_string>, template_string = u'{% load vehicle_extras %}\n<!DOCTYPE HTML PUBLIC ...iew();\n} catch(err) {}</script>\n</body>\n</html>\n\n', origin = None |
/home/colourschool/django/django_src/django/template/__init__.py in compile_string(template_string=u'{% load vehicle_extras %}\n<!DOCTYPE HTML PUBLIC ...iew();\n} catch(err) {}</script>\n</body>\n</html>\n\n', origin=None) |
185 lexer = lexer_class(template_string, origin) |
186 parser = parser_class(lexer.tokenize()) |
=> 187 return parser.parse() |
188 |
189 class Token(object): |
parser = <django.template.Parser object>, parser.parse = <bound method Parser.parse of <django.template.Parser object>> |
/home/colourschool/django/django_src/django/template/__init__.py in parse(self=<django.template.Parser object>, parse_until=[]) |
281 self.invalid_block_tag(token, command) |
282 try: |
=> 283 compiled_result = compile_func(self, token) |
284 except TemplateSyntaxError, e: |
285 if not self.compile_function_error(token, e): |
compiled_result undefined, compile_func = <function load>, self = <django.template.Parser object>, token = <django.template.Token object> |
/home/colourschool/django/django_src/django/template/defaulttags.py in load(parser=<django.template.Parser object>, token=<django.template.Token object>) |
878 except InvalidTemplateLibrary, e: |
879 raise TemplateSyntaxError("'%s' is not a valid tag library: %s" % |
=> 880 (taglib, e)) |
881 return LoadNode() |
882 load = register.tag(load) |
taglib = u'vehicle_extras', e = InvalidTemplateLibrary(u'Could not load template...latetags.vehicle_extras, No module named Image',) |
<class 'django.template.TemplateSyntaxError'>: 'vehicle_extras' is not a valid tag library: Could not load template library from django.templatetags.vehicle_extras, No module named Image
args =
(u"'vehicle_extras' is not a valid tag library: Cou...emplatetags.vehicle_extras, No module named Image",)
message =
u"'vehicle_extras' is not a valid tag library: Cou...emplatetags.vehicle_extras, No module named Image"