'bootstrap3' is not a valid tag library: ImportError raised loading bootstrap3.templatetags.bootstrap3: No module named parse
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:16181/kariyer/ |
Django Version: | 1.8 |
Exception Type: | TemplateSyntaxError |
Exception Value: | 'bootstrap3' is not a valid tag library: ImportError raised loading bootstrap3.templatetags.bootstrap3: No module named parse |
Exception Location: | /usr/lib/python2.7/site-packages/django/template/defaulttags.py in load, line 1159 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.5 |
Python Path: | ['/home/ppdas/webapps/parsat', '/home/ppdas/webapps/parsat/myproject', '/home/ppdas/webapps/parsat/lib/python2.7', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages'] |
Server time: | Sal, 19 Mar 2024 11:55:35 +0300 |
/usr/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
e | TemplateSyntaxError(u"'bootstrap3' is not a valid tag library: ImportError raised loading bootstrap3.templatetags.bootstrap3: No module named parse",) |
callback_args | () |
resolver_match | ResolverMatch(func=categories.views.human_resources, args=(), kwargs={}, url_name=None, app_name=None, namespaces=[]) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8e28e05510>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8e30781c90> |
request | "<WSGIRequest\npath:/kariyer/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'HjOPmULqLojZzZyW15PAKe4Dmq6OSHH6',\n 'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': '127.0.0.1:16181',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '18.205.114.205',\n 'HTTP_X_FORWARDED_HOST': 'www.parsatpiston.com',\n 'HTTP_X_FORWARDED_SERVER': 'www.parsatpiston.com',\n 'HTTP_X_REAL_IP': '18.205.114.205',\n 'LD_LIBRARY_PATH': '/home/ppdas/webapps/parsat/apache2/lib:/home/ppdas/webapps/parsat/lib',\n 'PATH_INFO': u'/kariyer/',\n 'PATH_TRANSLATED': '/home/ppdas/webapps/parsat/myproject/myproject/wsgi.py/kariyer/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '45146',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/kariyer/',\n 'SCRIPT_FILENAME': '/home/ppdas/webapps/parsat/myproject/myproject/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': '127.0.0.1',\n 'SERVER_PORT': '16181',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Unix) mod_wsgi/4.4.23 Python/2.7.5',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'server.parsat.com:16181|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1710838535516661',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '16181',\n 'mod_wsgi.path_info': '/kariyer/',\n 'mod_wsgi.process_group': 'parsat',\n 'mod_wsgi.queue_start': '1710838535516475',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838535516253',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838535516733',\n 'mod_wsgi.version': (4, 4, 23),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f8e13a0c270>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f8e139f20d0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function human_resources at 0x7f8e28dd4c08> |
wrapped_callback | <function human_resources at 0x7f8e28dd4c08> |
resolver | <RegexURLResolver 'myproject.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'myproject.urls' |
/home/ppdas/webapps/parsat/myproject/categories/views.py
in human_resources
return HttpResponseRedirect(request.META['HTTP_REFERER'])
else:
form = HumanResourceForm()
news = News.objects.order_by('-date')[:3]
return render_to_response('categories/human_resource.html',locals(),context_instance=RequestContext(request))...
def flatpage(request,slug):
detail = FlatPage.objects.get(slug=slug,active=True)
list = FlatPage.objects.filter(active=True).order_by('order_id')
news = News.objects.order_by('-date')[:3]
Variable | Value |
---|---|
news | [<News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3871 nolu standda misafirlerini ağırlayacaktır.>, <News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3879 nolu standda misafirlerini ağırlamıştır.>, <News: Parsat Piston 04-07 Nisan 2019 tarihleri arasında Automechanika İstanbul 2019 fuarında Salon 7 Stand No:A150'de ziyaretçilerini ağırlamıştır.>] |
request | "<WSGIRequest\npath:/kariyer/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'HjOPmULqLojZzZyW15PAKe4Dmq6OSHH6',\n 'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': '127.0.0.1:16181',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '18.205.114.205',\n 'HTTP_X_FORWARDED_HOST': 'www.parsatpiston.com',\n 'HTTP_X_FORWARDED_SERVER': 'www.parsatpiston.com',\n 'HTTP_X_REAL_IP': '18.205.114.205',\n 'LD_LIBRARY_PATH': '/home/ppdas/webapps/parsat/apache2/lib:/home/ppdas/webapps/parsat/lib',\n 'PATH_INFO': u'/kariyer/',\n 'PATH_TRANSLATED': '/home/ppdas/webapps/parsat/myproject/myproject/wsgi.py/kariyer/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '45146',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/kariyer/',\n 'SCRIPT_FILENAME': '/home/ppdas/webapps/parsat/myproject/myproject/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': '127.0.0.1',\n 'SERVER_PORT': '16181',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.18 (Unix) mod_wsgi/4.4.23 Python/2.7.5',\n 'apache.version': (2, 4, 18),\n 'mod_wsgi.application_group': 'server.parsat.com:16181|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1710838535516661',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '16181',\n 'mod_wsgi.path_info': '/kariyer/',\n 'mod_wsgi.process_group': 'parsat',\n 'mod_wsgi.queue_start': '1710838535516475',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_start': '1710838535516253',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1710838535516733',\n 'mod_wsgi.version': (4, 4, 23),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f8e13a0c270>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f8e139f20d0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
form | <HumanResourceForm bound=False, valid=Unknown, fields=(name;phone;email;position;text;cv)> |
/usr/lib/python2.7/site-packages/django/shortcuts.py
in render_to_response
# No deprecated arguments were passed - use the new code path
content = loader.render_to_string(template_name, context, using=using)
else:
# Some deprecated arguments were passed - use the legacy code path
content = loader.render_to_string(
template_name, context, context_instance, dirs, dictionary,
using=using)...
return HttpResponse(content, content_type, status)
def render(request, template_name, context=None,
context_instance=_context_instance_undefined,
Variable | Value |
---|---|
dirs | <object object at 0x7f8e2be786f0> |
status | None |
content_type | None |
dictionary | <object object at 0x7f8e2be786e0> |
template_name | 'categories/human_resource.html' |
context_instance | [{'False': False, 'None': None, 'True': True}, {}] |
context | {'form': <HumanResourceForm bound=False, valid=Unknown, fields=(name;phone;email;position;text;cv)>, 'news': [<News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3871 nolu standda misafirlerini ağırlayacaktır.>, <News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3879 nolu standda misafirlerini ağırlamıştır.>, <News: Parsat Piston 04-07 Nisan 2019 tarihleri arasında Automechanika İstanbul 2019 fuarında Salon 7 Stand No:A150'de ziyaretçilerini ağırlamıştır.>], 'request': <WSGIRequest: GET '/kariyer/'>} |
using | None |
/usr/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
if request is not None:
raise ValueError(
"render_to_string doesn't support the request argument "
"when some deprecated arguments are passed.")
continue
# Hack -- use the internal Engine instance of DjangoTemplates.
return engine.engine.render_to_string(
template_name, context, context_instance, dirs, dictionary)...
elif context_instance is not _context_instance_undefined:
warnings.warn(
"Skipping template backend %s because its render_to_string "
"method doesn't support the context_instance argument." %
engine.name, stacklevel=2)
elif dirs is not _dirs_undefined:
Variable | Value |
---|---|
engine | <django.template.backends.django.DjangoTemplates object at 0x7f8e28dd9790> |
dirs | <object object at 0x7f8e2be786f0> |
dictionary | <object object at 0x7f8e2be786e0> |
template_name | 'categories/human_resource.html' |
request | None |
context_instance | [{'False': False, 'None': None, 'True': True}, {}] |
context | {'form': <HumanResourceForm bound=False, valid=Unknown, fields=(name;phone;email;position;text;cv)>, 'news': [<News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3871 nolu standda misafirlerini ağırlayacaktır.>, <News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3879 nolu standda misafirlerini ağırlamıştır.>, <News: Parsat Piston 04-07 Nisan 2019 tarihleri arasında Automechanika İstanbul 2019 fuarında Salon 7 Stand No:A150'de ziyaretçilerini ağırlamıştır.>], 'request': <WSGIRequest: GET '/kariyer/'>} |
using | None |
/usr/lib/python2.7/site-packages/django/template/engine.py
in render_to_string
"The dictionary argument of render_to_string was renamed to "
"context.", RemovedInDjango20Warning, stacklevel=2)
context = dictionary
if isinstance(template_name, (list, tuple)):
t = self.select_template(template_name, dirs)
else:
t = self.get_template(template_name, dirs)...
if not context_instance:
# Django < 1.8 accepted a Context in `context` even though that's
# unintended. Preserve this ability but don't rewrap `context`.
if isinstance(context, Context):
return t.render(context)
else:
Variable | Value |
---|---|
dirs | <object object at 0x7f8e2be786f0> |
dictionary | None |
template_name | 'categories/human_resource.html' |
self | <django.template.engine.Engine object at 0x7f8e28dd97d0> |
context_instance | [{'False': False, 'None': None, 'True': True}, {}] |
context | {'form': <HumanResourceForm bound=False, valid=Unknown, fields=(name;phone;email;position;text;cv)>, 'news': [<News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3871 nolu standda misafirlerini ağırlayacaktır.>, <News: Parsat Piston Las Vegas Aapex fuarında 2. Hol 3879 nolu standda misafirlerini ağırlamıştır.>, <News: Parsat Piston 04-07 Nisan 2019 tarihleri arasında Automechanika İstanbul 2019 fuarında Salon 7 Stand No:A150'de ziyaretçilerini ağırlamıştır.>], 'request': <WSGIRequest: GET '/kariyer/'>} |
/usr/lib/python2.7/site-packages/django/template/engine.py
in get_template
if dirs is _dirs_undefined:
dirs = None
else:
warnings.warn(
"The dirs argument of get_template is deprecated.",
RemovedInDjango20Warning, stacklevel=2)
template, origin = self.find_template(template_name, dirs)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
# This method was originally a function defined in django.template.loader.
Variable | Value |
---|---|
dirs | None |
template_name | 'categories/human_resource.html' |
self | <django.template.engine.Engine object at 0x7f8e28dd97d0> |
/usr/lib/python2.7/site-packages/django/template/engine.py
in find_template
else:
raise ImproperlyConfigured(
"Invalid value in template loaders configuration: %r" % loader)
def find_template(self, name, dirs=None):
for loader in self.template_loaders:
try:
source, display_name = loader(name, dirs)...
origin = self.make_origin(display_name, loader, name, dirs)
return source, origin
except TemplateDoesNotExist:
pass
raise TemplateDoesNotExist(name)
Variable | Value |
---|---|
dirs | None |
self | <django.template.engine.Engine object at 0x7f8e28dd97d0> |
name | 'categories/human_resource.html' |
loader | <django.template.loaders.filesystem.Loader object at 0x7f8e28d98a50> |
/usr/lib/python2.7/site-packages/django/template/loaders/base.py
in __call__
# Only used to raise a deprecation warning. Remove in Django 2.0.
_accepts_engine_in_init = True
def __init__(self, engine):
self.engine = engine
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)...
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(
template_name, template_dirs)
origin = self.engine.make_origin(
display_name, self.load_template_source,
Variable | Value |
---|---|
template_dirs | None |
template_name | 'categories/human_resource.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f8e28d98a50> |
/usr/lib/python2.7/site-packages/django/template/loaders/base.py
in load_template
source, display_name = self.load_template_source(
template_name, template_dirs)
origin = self.engine.make_origin(
display_name, self.load_template_source,
template_name, template_dirs)
try:
template = Template(source, origin, template_name, self.engine)...
except TemplateDoesNotExist:
# If compiling the template we found raises TemplateDoesNotExist,
# back off to returning the source and display name for the
# template we were asked to load. This allows for correct
# identification of the actual template that does not exist.
return source, display_name
Variable | Value |
---|---|
origin | None |
template_dirs | None |
display_name | u'/home/ppdas/webapps/parsat/myproject/myproject/templates/categories/human_resource.html' |
template_name | 'categories/human_resource.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f8e28d98a50> |
source | u'{% extends \'base.html\' %}\n{% load i18n %}\n{% load thumbnail %}\n{% load ayarlar %}\n{% load watermarks %}\n{% block title %}{% set_text \'Title\' %}{% endblock title %}\n{% block keywords %}{% set_text \'Keywords\' %}{% endblock keywords %}\n{% block description %}{% set_text \'Description\' %}{% endblock description %}\n{% load bootstrap3 %}\n{% bootstrap_css %}\n{% bootstrap_javascript %}\n{% block content %}\n\n\t\n <header class="page-header small common-header bgc-dark-o-5">\n <div class="slider caption-slider control-nav direction-nav">\n <div data-position="center center" data-image-src="/static/assets/images/hop2.png" data-speed="0.3" >\n \t\n </div>\n </div>\n <div class="container text-center cell-vertical-wrapper">\n <div class="cell-middle">\n \t{% if request.LANGUAGE_CODE == "tr" %}\n <h3 style="margin-top:142px;" class="text-responsive size-l nmb">KAR\u0130YER</h3> \n {% else %}\n \n <h3 style="margin-top:142px;" class="text-responsive size-l nmb">CAREER</h3> \n {% endif %}\n </div>\n </div>\n \n </header>\n <section class="page-section" style="">\n <div class="container">\t\t\t\t\n <form action="." method="post" enctype="multipart/form-data">\n {% csrf_token %}\n\n {% bootstrap_form form %}\n\n\t<input type="submit" name="submit" class="btn btn-size-2 btn-primary" value="{% trans \'SEND\' %}"/>\n \t<br>{{message}}\n \t<br><br>\n </form>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</section>\t\n\t\n\n \t</div> \n\n\n{% endblock content %}' |
/usr/lib/python2.7/site-packages/django/template/base.py
in __init__
# This is required to preserve backwards-compatibility for direct use
# e.g. Template('...').render(Context({...}))
if engine is None:
from .engine import Engine
engine = Engine.get_default()
if engine.debug and origin is None:
origin = StringOrigin(template_string)
self.nodelist = engine.compile_string(template_string, origin)...
self.name = name
self.origin = origin
self.engine = engine
def __iter__(self):
for node in self.nodelist:
Variable | Value |
---|---|
engine | <django.template.engine.Engine object at 0x7f8e28dd97d0> |
origin | None |
self | <django.template.base.Template object at 0x7f8e13950210> |
name | 'categories/human_resource.html' |
template_string | u'{% extends \'base.html\' %}\n{% load i18n %}\n{% load thumbnail %}\n{% load ayarlar %}\n{% load watermarks %}\n{% block title %}{% set_text \'Title\' %}{% endblock title %}\n{% block keywords %}{% set_text \'Keywords\' %}{% endblock keywords %}\n{% block description %}{% set_text \'Description\' %}{% endblock description %}\n{% load bootstrap3 %}\n{% bootstrap_css %}\n{% bootstrap_javascript %}\n{% block content %}\n\n\t\n <header class="page-header small common-header bgc-dark-o-5">\n <div class="slider caption-slider control-nav direction-nav">\n <div data-position="center center" data-image-src="/static/assets/images/hop2.png" data-speed="0.3" >\n \t\n </div>\n </div>\n <div class="container text-center cell-vertical-wrapper">\n <div class="cell-middle">\n \t{% if request.LANGUAGE_CODE == "tr" %}\n <h3 style="margin-top:142px;" class="text-responsive size-l nmb">KAR\u0130YER</h3> \n {% else %}\n \n <h3 style="margin-top:142px;" class="text-responsive size-l nmb">CAREER</h3> \n {% endif %}\n </div>\n </div>\n \n </header>\n <section class="page-section" style="">\n <div class="container">\t\t\t\t\n <form action="." method="post" enctype="multipart/form-data">\n {% csrf_token %}\n\n {% bootstrap_form form %}\n\n\t<input type="submit" name="submit" class="btn btn-size-2 btn-primary" value="{% trans \'SEND\' %}"/>\n \t<br>{{message}}\n \t<br><br>\n </form>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</section>\t\n\t\n\n \t</div> \n\n\n{% endblock content %}' |
/usr/lib/python2.7/site-packages/django/template/engine.py
in compile_string
from .debug import DebugLexer, DebugParser
lexer_class, parser_class = DebugLexer, DebugParser
else:
lexer_class, parser_class = Lexer, Parser
lexer = lexer_class(template_string, origin)
tokens = lexer.tokenize()
parser = parser_class(tokens)
return parser.parse()...
def make_origin(self, display_name, loader, name, dirs):
if self.debug and display_name:
# Inner import to avoid circular dependency
from .loader import LoaderOrigin
return LoaderOrigin(display_name, loader, name, dirs)
Variable | Value |
---|---|
lexer_class | <class 'django.template.base.Lexer'> |
origin | None |
parser | <django.template.base.Parser object at 0x7f8e139501d0> |
self | <django.template.engine.Engine object at 0x7f8e28dd97d0> |
lexer | <django.template.base.Lexer object at 0x7f8e139500d0> |
tokens | [<django.template.base.Token object at 0x7f8e1398fe90>, <django.template.base.Token object at 0x7f8e1398fcd0>, <django.template.base.Token object at 0x7f8e1398fbd0>, <django.template.base.Token object at 0x7f8e1398fb50>, <django.template.base.Token object at 0x7f8e1398fad0>, <django.template.base.Token object at 0x7f8e1398fc10>, <django.template.base.Token object at 0x7f8e1398fe10>, <django.template.base.Token object at 0x7f8e1398ffd0>, <django.template.base.Token object at 0x7f8e1398ff50>, <django.template.base.Token object at 0x7f8e1398f190>, <django.template.base.Token object at 0x7f8e1398fdd0>, <django.template.base.Token object at 0x7f8e1398f390>, <django.template.base.Token object at 0x7f8e1398f250>, <django.template.base.Token object at 0x7f8e1398f950>, <django.template.base.Token object at 0x7f8e1398fc90>, <django.template.base.Token object at 0x7f8e1398fd50>, <django.template.base.Token object at 0x7f8e1398fc50>, <django.template.base.Token object at 0x7f8e1398fb10>, <django.template.base.Token object at 0x7f8e1398f110>, <django.template.base.Token object at 0x7f8e1398ff90>, <django.template.base.Token object at 0x7f8e1398f290>, <django.template.base.Token object at 0x7f8e1398fb90>] |
template_string | u'{% extends \'base.html\' %}\n{% load i18n %}\n{% load thumbnail %}\n{% load ayarlar %}\n{% load watermarks %}\n{% block title %}{% set_text \'Title\' %}{% endblock title %}\n{% block keywords %}{% set_text \'Keywords\' %}{% endblock keywords %}\n{% block description %}{% set_text \'Description\' %}{% endblock description %}\n{% load bootstrap3 %}\n{% bootstrap_css %}\n{% bootstrap_javascript %}\n{% block content %}\n\n\t\n <header class="page-header small common-header bgc-dark-o-5">\n <div class="slider caption-slider control-nav direction-nav">\n <div data-position="center center" data-image-src="/static/assets/images/hop2.png" data-speed="0.3" >\n \t\n </div>\n </div>\n <div class="container text-center cell-vertical-wrapper">\n <div class="cell-middle">\n \t{% if request.LANGUAGE_CODE == "tr" %}\n <h3 style="margin-top:142px;" class="text-responsive size-l nmb">KAR\u0130YER</h3> \n {% else %}\n \n <h3 style="margin-top:142px;" class="text-responsive size-l nmb">CAREER</h3> \n {% endif %}\n </div>\n </div>\n \n </header>\n <section class="page-section" style="">\n <div class="container">\t\t\t\t\n <form action="." method="post" enctype="multipart/form-data">\n {% csrf_token %}\n\n {% bootstrap_form form %}\n\n\t<input type="submit" name="submit" class="btn btn-size-2 btn-primary" value="{% trans \'SEND\' %}"/>\n \t<br>{{message}}\n \t<br><br>\n </form>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</section>\t\n\t\n\n \t</div> \n\n\n{% endblock content %}' |
parser_class | <class 'django.template.base.Parser'> |
/usr/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
nodelist | [] |
compile_func | <function do_extends at 0x7f8e2bba7488> |
self | <django.template.base.Parser object at 0x7f8e139501d0> |
token | <django.template.base.Token object at 0x7f8e13950ed0> |
parse_until | [] |
command | u'extends' |
e | TemplateSyntaxError(u"'bootstrap3' is not a valid tag library: ImportError raised loading bootstrap3.templatetags.bootstrap3: No module named parse",) |
/usr/lib/python2.7/site-packages/django/template/loader_tags.py
in do_extends
name of the parent template to extend (if it evaluates to a string) or as
the parent template itself (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()...
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
return ExtendsNode(nodelist, parent_name)
@register.tag('include')
Variable | Value |
---|---|
parent_name | <django.template.base.FilterExpression object at 0x7f8e13950610> |
token | <django.template.base.Token object at 0x7f8e13950ed0> |
parser | <django.template.base.Parser object at 0x7f8e139501d0> |
bits | [u'extends', u"'base.html'"] |
/usr/lib/python2.7/site-packages/django/template/base.py
in parse
# resulting node
self.enter_command(command, token)
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
try:
compiled_result = compile_func(self, token)...
except TemplateSyntaxError as e:
if not self.compile_function_error(token, e):
raise
self.extend_nodelist(nodelist, compiled_result, token)
self.exit_command()
if parse_until:
Variable | Value |
---|---|
compiled_result | <Block Node: description. Contents: [<django.template.base.SimpleNode object at 0x7f8e1398ff10>]> |
nodelist | [<Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f8e1395c490>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f8e1395cd90>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f8e1395c5d0>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7f8e1395c750>, <Text Node: ' '>, <Block Node: title. Contents: [<django.template.base.SimpleNode object at 0x7f8e1395c210>]>, <Text Node: ' '>, <Block Node: keywords. Contents: [<django.template.base.SimpleNode object at 0x7f8e1395c2d0>]>, <Text Node: ' '>, <Block Node: description. Contents: [<django.template.base.SimpleNode object at 0x7f8e1398ff10>]>, <Text Node: ' '>] |
compile_func | <function load at 0x7f8e2bbac668> |
self | <django.template.base.Parser object at 0x7f8e139501d0> |
token | <django.template.base.Token object at 0x7f8e1398f0d0> |
parse_until | [] |
command | u'load' |
e | TemplateSyntaxError(u"'bootstrap3' is not a valid tag library: ImportError raised loading bootstrap3.templatetags.bootstrap3: No module named parse",) |
/usr/lib/python2.7/site-packages/django/template/defaulttags.py
in load
for taglib in bits[1:]:
# add the library to the parser
try:
lib = get_library(taglib)
parser.add_library(lib)
except InvalidTemplateLibrary as e:
raise TemplateSyntaxError("'%s' is not a valid tag library: %s" %
(taglib, e))...
return LoadNode()
@register.tag
def lorem(parser, token):
"""
Variable | Value |
---|---|
e | InvalidTemplateLibrary(u'ImportError raised loading bootstrap3.templatetags.bootstrap3: No module named parse',) |
token | <django.template.base.Token object at 0x7f8e1398f0d0> |
taglib | u'bootstrap3' |
bits | [u'load', u'bootstrap3'] |
parser | <django.template.base.Parser object at 0x7f8e139501d0> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '16181' |
HTTP_X_FORWARDED_SERVER | 'www.parsatpiston.com' |
mod_wsgi.listener_host | '' |
CONTEXT_DOCUMENT_ROOT | '/usr/local/apache2/htdocs' |
SERVER_SOFTWARE | 'Apache/2.4.18 (Unix) mod_wsgi/4.4.23 Python/2.7.5' |
SCRIPT_NAME | u'' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/kariyer/' |
SERVER_PROTOCOL | 'HTTP/1.0' |
QUERY_STRING | '' |
LD_LIBRARY_PATH | '/home/ppdas/webapps/parsat/apache2/lib:/home/ppdas/webapps/parsat/lib' |
HTTP_X_REAL_IP | '18.205.114.205' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'close' |
SERVER_NAME | '127.0.0.1' |
REMOTE_ADDR | '127.0.0.1' |
mod_wsgi.queue_start | '1710838535516475' |
mod_wsgi.request_handler | 'wsgi-script' |
apache.version | (2, 4, 18) |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/home/ppdas/webapps/parsat/myproject/myproject/wsgi.py/kariyer/' |
SERVER_PORT | '16181' |
wsgi.multiprocess | True |
SERVER_ADDR | '127.0.0.1' |
DOCUMENT_ROOT | '/usr/local/apache2/htdocs' |
mod_wsgi.process_group | 'parsat' |
mod_wsgi.daemon_connects | '1' |
SCRIPT_FILENAME | '/home/ppdas/webapps/parsat/myproject/myproject/wsgi.py' |
SERVER_ADMIN | '[no address given]' |
wsgi.input | <mod_wsgi.Input object at 0x7f8e139f20d0> |
HTTP_HOST | '127.0.0.1:16181' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_restarts | '0' |
REQUEST_URI | '/kariyer/' |
HTTP_ACCEPT | '*/*' |
mod_wsgi.path_info | '/kariyer/' |
wsgi.file_wrapper | '' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '18.205.114.205' |
mod_wsgi.script_name | '' |
REMOTE_PORT | '45146' |
HTTP_X_FORWARDED_HOST | 'www.parsatpiston.com' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (4, 4, 23) |
wsgi.run_once | False |
mod_wsgi.script_start | '1710838535516733' |
mod_wsgi.application_group | 'server.parsat.com:16181|' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.request_start | '1710838535516253' |
CSRF_COOKIE | u'HjOPmULqLojZzZyW15PAKe4Dmq6OSHH6' |
wsgi.errors | <mod_wsgi.Log object at 0x7f8e13a0c270> |
mod_wsgi.daemon_start | '1710838535516661' |
myproject.settings
Setting | Value |
---|---|
SECURE_BROWSER_XSS_FILTER | False |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'tr' |
ROOT_URLCONF | 'myproject.urls' |
MANAGERS | () |
BASE_DIR | '/home/ppdas/webapps/parsat/myproject' |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.PickleSerializer' |
STATIC_ROOT | None |
ALLOWED_HOSTS | ['*'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'root@localhost' |
SECURE_HSTS_SECONDS | 0 |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'parsat_db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'Europe/Istanbul', 'USER': 'parsat_user2'}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
SUIT_CONFIG | {'ADMIN_NAME': 'Parsat Piston Y\xc3\xb6netim Paneli', 'LIST_PER_PAGE': 20, 'MENU': ({'app': 'auth', 'label': u'Kullan\u0131c\u0131 Hesaplar\u0131'}, {'app': 'home', 'label': u'Ana Sayfa'}, {'app': 'news', 'label': u'Haberler & Duyurular'}, {'app': 'categories', 'label': u'Site Kategorileri'}, {'app': 'products', 'label': u'\xdcr\xfcnler'}, {'app': 'setting', 'label': u'Site Ayarlar\u0131'}), 'SHOW_REQUIRED_ASTERISK': True} |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
LOCALE_PATHS | ('/home/ppdas/webapps/parsat/myproject/locale',) |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
LOGIN_URL | '/accounts/login/' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SESSION_COOKIE_PATH | '/' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
MIDDLEWARE_CLASSES | ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'admin_reorder.middleware.ModelAdminReorder', 'django.middleware.locale.LocaleMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
FIRST_DAY_OF_WEEK | 0 |
WSGI_APPLICATION | None |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
BASE_PATH | '/home/ppdas/webapps/parsat/myproject/myproject' |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
LANGUAGE_COOKIE_DOMAIN | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('suit', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'admin_reorder', 'sorl.thumbnail', 'suit_ckeditor', 'bootstrap3', 'products', 'home', 'categories', 'setting', 'news', 'watermarker', 'transmeta') |
LANGUAGES | (('tr', u'T\xfcrk\xe7e'), ('en', 'English')) |
USE_L10N | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | ('/home/ppdas/webapps/parsat/myproject/myproject/static/', '/home/ppdas/webapps/parsat/myproject/myproject/static/suit-ckeditor', '/home/ppdas/webapps/parsat/myproject/myproject/static/suit/img') |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_AGE | 31449600 |
MONTH_DAY_FORMAT | 'F j' |
LOCALEURL_USE_ACCEPT_LANGUAGE | 'tr' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
TEMPLATE_PATH | '/home/ppdas/webapps/parsat/myproject/myproject/templates' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
MIGRATION_MODULES | {} |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/home/ppdas/webapps/parsat/myproject/myproject/media/' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
TRANSMETA_DEFAULT_LANGUAGE | 'tr' |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/home/ppdas/webapps/parsat/myproject/myproject/templates/',) |
CKEDITOR_CONFIGS | {'default': {'height': 300, 'toolbar': [['Bold', 'Italic', 'Underline']], 'width': 840}} |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {} |
ADMIN_REORDER | ({'app': 'auth', 'label': u'Kullan\u0131c\u0131 Hesaplar\u0131'}, {'app': 'home', 'label': u'Ana Sayfa'}, {'app': 'news', 'label': u'Haberler & Duyurular'}, {'app': 'categories', 'label': u'Site Kategorileri'}, {'app': 'products', 'label': u'\xdcr\xfcnler'}, {'app': 'setting', 'label': u'Site Ayarlar\u0131'}) |
TEMPLATES | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
SHORT_DATE_FORMAT | 'm/d/Y' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | 'Europe/Istanbul' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.request', 'django.contrib.messages.context_processors.messages') |
THUMBNAIL_DEBUG | True |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'myproject.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
EMAIL_HOST_USER | '' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.