bootstrap4/uni_form.html
Request Method: | GET |
---|---|
Request URL: | https://edupanda.org/login/ |
Django Version: | 4.2.3 |
Exception Type: | TemplateDoesNotExist |
Exception Value: | bootstrap4/uni_form.html |
Exception Location: | /app/.heroku/python/lib/python3.10/site-packages/django/template/backends/django.py, line 84, in reraise |
Raised during: | UserBase.views.login_request |
Python Executable: | /app/.heroku/python/bin/python |
Python Version: | 3.10.11 |
Python Path: | ['/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python310.zip', '/app/.heroku/python/lib/python3.10', '/app/.heroku/python/lib/python3.10/lib-dynload', '/app/.heroku/python/lib/python3.10/site-packages'] |
Server time: | Thu, 28 Mar 2024 23:46:34 +0000 |
Django tried loading these templates, in this order:
Using engine django
:
django.template.loaders.filesystem.Loader
: /app/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/admin_interface/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/colorfield/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/django/contrib/admin/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/django/contrib/auth/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/ListerExamples/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/meta/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/UserBase/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/library/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/djstripe/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/.heroku/python/lib/python3.10/site-packages/django_extensions/templates/bootstrap4/uni_form.html (Source does not exist)django.template.loaders.app_directories.Loader
: /app/accounts/templates/bootstrap4/uni_form.html (Source does not exist)In template /app/UserBase/templates/login.html
, error at line 18
8 | <br/><br/> |
---|---|
9 | |
10 | <div class="container"> |
11 | <div class="columns is-centered"> |
12 | <div class="column is-5-tablet is-4-desktop is-3-widescreen"> |
13 | |
14 | <div class="notification"> |
15 | <form method="POST"> |
16 | {% csrf_token %} |
17 | |
18 | {{ login_form|crispy }} |
19 | |
20 | |
21 | <br/> |
22 | <div class="control"> |
23 | <button class="button is-link" type="submit">Zaloguj</button> |
24 | </div> |
25 | |
26 | </form> |
27 | |
28 |
/app/.heroku/python/lib/python3.10/site-packages/django/template/backends/django.py
, line 61, in render
return self.template.origin
def render(self, context=None, request=None):
context = make_context(
context, request, autoescape=self.backend.engine.autoescape
)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
request | <WSGIRequest: GET '/login/'> |
self | <django.template.backends.django.Template object at 0x7f9bc37b37f0> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 175, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <Template template_string="{% extends 'base.htm..."> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <Template template_string="{% extends 'base.htm..."> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | [<ExtendsNode: extends 'base.html'>] |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f9bc37b03a0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
node | <ExtendsNode: extends 'base.html'> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <ExtendsNode: extends 'base.html'> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/loader_tags.py
, line 157, in render
}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = "__include_context"
def __init__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'content': [<Block Node: content. Contents: [<TextNode: '\n\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>]})> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n\n'>]>, 'header': <Block Node: header. Contents: [<TextNode: '\n'>]>} |
compiled_parent | <Template template_string="<!DOCTYPE html><htm..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
node | <IncludeNode: template=<FilterExpression '"meta.html"'>> |
self | <ExtendsNode: extends 'base.html'> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <Template template_string="<!DOCTYPE html><htm..."> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | [<TextNode: '<!DOCTYPE html>\n<html lan'>, <IncludeNode: template=<FilterExpression '"meta.html"'>>, <TextNode: '\n<!-- Google tag (gtag.js'>, <django.template.defaulttags.CommentNode object at 0x7f9bc483dfc0>, <TextNode: '\n <script id="MathJax-'>, <Block Node: header. Contents: [<TextNode: '\n'>]>, <TextNode: '\n \n\n </head>\n <body>'>, <IfNode>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n\n </li>'>, <IfNode>, <TextNode: '\n\n\n\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n\n '>, <IfNode>, <TextNode: '\n\n\n '>, <django.template.defaulttags.CommentNode object at 0x7f9bc4781360>, <TextNode: '\n \n '>, <django.template.defaulttags.CommentNode object at 0x7f9bc4780a00>, <TextNode: '\n\n <div cl'>, <IfNode>, <TextNode: '\n <!--'>, <django.template.defaulttags.CommentNode object at 0x7f9bc47805e0>, <TextNode: '\n\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9bc47820e0>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f9bc47834f0>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n <!--'>, <IfNode>, <TextNode: '\n\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.CommentNode object at 0x7f9bc69f3790>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: '\n\n'>]>, <TextNode: '\n\n <!-- Footer Part HT'>, <IfNode>, <TextNode: '\n \n '>, <IfNode>, <TextNode: '\n\n\n\n\n </div>\n '>, <ForNode: for message in messages, tail_len: 1>, <TextNode: "'\n if (myLstMsg ==">, <URLNode view_name=''sign_up'' args=[] kwargs={} as=None>, <TextNode: '",\n type'>, <URLNode view_name=''login'' args=[] kwargs={} as=None>, <TextNode: '",\n type'>] |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f9bc37b0820> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
node | <Block Node: content. Contents: [<TextNode: '\n\n'>]> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <Block Node: content. Contents: [<TextNode: '\n\n'>]> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/loader_tags.py
, line 63, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context["block"] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, "context"):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: ' \n\n'>, <django.template.defaulttags.LoadNode object at 0x7f9bc37b1ff0>, <TextNode: '\n\n<!--Login--> \n<br/><br/'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9bc38eae30>, <TextNode: '\n\n '>, <Variable Node: login_form|crispy>, <TextNode: '\n\n \n<br/>\n <div cla'>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'content': [<Block Node: content. Contents: [<TextNode: '\n\n'>]>], 'header': [<Block Node: header. Contents: [<TextNode: '\n'>]>]})> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
push | <Block Node: content. Contents: [<TextNode: ' \n\n'>, <django.template.defaulttags.LoadNode object at 0x7f9bc37b1ff0>, <TextNode: '\n\n<!--Login--> \n<br/><br/'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9bc38eae30>, <TextNode: '\n\n '>, <Variable Node: login_form|crispy>, <TextNode: '\n\n \n<br/>\n <div cla'>]> |
self | <Block Node: content. Contents: [<TextNode: '\n\n'>]> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | [<TextNode: ' \n\n'>, <django.template.defaulttags.LoadNode object at 0x7f9bc37b1ff0>, <TextNode: '\n\n<!--Login--> \n<br/><br/'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f9bc38eae30>, <TextNode: '\n\n '>, <Variable Node: login_form|crispy>, <TextNode: '\n\n \n<br/>\n <div cla'>] |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f9bc37cf730> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
node | <Variable Node: login_form|crispy> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 966, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <Variable Node: login_form|crispy> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 1064, in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)…
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ""
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
self | <Variable Node: login_form|crispy> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/base.py
, line 742, in resolve
else:
arg_vals.append(arg.resolve(context))
if getattr(func, "expects_localtime", False):
obj = template_localtime(obj, context.use_tz)
if getattr(func, "needs_autoescape", False):
new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
else:
new_obj = func(obj, *arg_vals)…
if getattr(func, "is_safe", False) and isinstance(obj, SafeData):
obj = mark_safe(new_obj)
else:
obj = new_obj
return obj
Variable | Value |
---|---|
arg_vals | [] |
args | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
func | <function as_crispy_form at 0x7f9bc69b2dd0> |
ignore_failures | False |
obj | <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)> |
self | <FilterExpression 'login_form|crispy'> |
/app/.heroku/python/lib/python3.10/site-packages/crispy_forms/templatetags/crispy_forms_filters.py
, line 58, in as_crispy_form
"form_show_labels": True,
"label_class": label_class,
}
if isinstance(form, BaseFormSet):
template = uni_formset_template(template_pack)
c["formset"] = form
else:
template = uni_form_template(template_pack)…
c["form"] = form
return template.render(c)
@register.filter(name="as_crispy_errors")
Variable | Value |
---|---|
c | {'field_class': '', 'field_template': 'bootstrap4/field.html', 'form_show_errors': True, 'form_show_labels': True, 'label_class': ''} |
field_class | '' |
form | <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)> |
label_class | '' |
template_pack | <SimpleLazyObject: 'bootstrap4'> |
/app/.heroku/python/lib/python3.10/site-packages/crispy_forms/templatetags/crispy_forms_filters.py
, line 21, in uni_form_template
@lru_cache()
def uni_formset_template(template_pack=TEMPLATE_PACK):
return get_template("%s/uni_formset.html" % template_pack)
@lru_cache()
def uni_form_template(template_pack=TEMPLATE_PACK):
return get_template("%s/uni_form.html" % template_pack)…
register = template.Library()
@register.filter(name="crispy")
Variable | Value |
---|---|
template_pack | <SimpleLazyObject: 'bootstrap4'> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/loader.py
, line 19, in get_template
engines = _engine_list(using)
for engine in engines:
try:
return engine.get_template(template_name)
except TemplateDoesNotExist as e:
chain.append(e)
raise TemplateDoesNotExist(template_name, chain=chain)…
def select_template(template_name_list, using=None):
"""
Load and return a template for one of the given names.
Variable | Value |
---|---|
chain | [TemplateDoesNotExist('bootstrap4/uni_form.html')] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7f9bc4b59cf0> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7f9bc4b59cf0>] |
template_name | 'bootstrap4/uni_form.html' |
using | None |
/app/.heroku/python/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TemplateDoesNotExist('bootstrap4/uni_form.html') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f9bc539e4a0>> |
request | <WSGIRequest: GET '/login/'> |
/app/.heroku/python/lib/python3.10/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function login_request at 0x7f9bc468e560> |
callback_args | () |
callback_kwargs | {} |
request | <WSGIRequest: GET '/login/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f9bc539e4a0> |
wrapped_callback | <function login_request at 0x7f9bc468e560> |
/app/UserBase/views.py
, line 95, in login_request
messages.info(request, f"You are now logged in as {username}.")
return redirect('/')
else:
messages.error(request, "Invalid username or password.")
else:
messages.error(request, "Invalid username or password.")
form = AuthenticationForm()
return render(request=request, template_name="login.html", context={"login_form": form, 'noindex': 'True'})…
def logout_other_sessions(request):
user = request.user
if user.is_authenticated:
# Usuń inne sesje
Variable | Value |
---|---|
form | <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)> |
request | <WSGIRequest: GET '/login/'> |
/app/.heroku/python/lib/python3.10/site-packages/django/shortcuts.py
, line 24, in render
def render(
request, template_name, context=None, content_type=None, status=None, using=None
):
"""
Return an HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'} |
request | <WSGIRequest: GET '/login/'> |
status | None |
template_name | 'login.html' |
using | None |
/app/.heroku/python/lib/python3.10/site-packages/django/template/loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'} |
request | <WSGIRequest: GET '/login/'> |
template | <django.template.backends.django.Template object at 0x7f9bc37b37f0> |
template_name | 'login.html' |
using | None |
/app/.heroku/python/lib/python3.10/site-packages/django/template/backends/django.py
, line 63, in render
def render(self, context=None, request=None):
context = make_context(
context, request, autoescape=self.backend.engine.autoescape
)
try:
return self.template.render(context)
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)…
def copy_exception(exc, backend=None):
"""
Create a new TemplateDoesNotExist. Preserve its declared attributes and
template debug data but discard __traceback__, __context__, and __cause__
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'login_form': <AuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'noindex': 'True'}] |
request | <WSGIRequest: GET '/login/'> |
self | <django.template.backends.django.Template object at 0x7f9bc37b37f0> |
/app/.heroku/python/lib/python3.10/site-packages/django/template/backends/django.py
, line 84, in reraise
def reraise(exc, backend):
"""
Reraise TemplateDoesNotExist while maintaining template debug information.
"""
new = copy_exception(exc, backend)
raise new from exc…
def get_template_tag_modules():
"""
Yield (module_name, module_path) pairs for all installed template tag
libraries.
Variable | Value |
---|---|
backend | <django.template.backends.django.DjangoTemplates object at 0x7f9bc4b59cf0> |
exc | TemplateDoesNotExist('bootstrap4/uni_form.html') |
new | TemplateDoesNotExist('bootstrap4/uni_form.html') |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'ceLmTACspe5uJUXqIrSy6EPWXhUhHFYs' |
CSRF_COOKIE_NEEDS_UPDATE | True |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_CONNECT_TIME | '0' |
HTTP_HOST | 'edupanda.org' |
HTTP_TOTAL_ROUTE_TIME | '0' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '1.1 vegur' |
HTTP_X_FORWARDED_FOR | '54.163.62.42, 10.1.2.34' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REQUEST_ID | '8c435718-6aba-41ae-a792-f7d7f561b3d1' |
HTTP_X_REQUEST_START | '1711669594267' |
PATH_INFO | '/login/' |
QUERY_STRING | '' |
RAW_URI | '/login/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'edupanda.org' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/tmp/nginx.socket> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f9bc37b0100> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f9bc37b27a0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
EdupandaBeta.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'UserBase.MyUser' |
BASE_DIR | '/app' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_MASKED | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '34.118.124.227', 'NAME': 'edupanda_current', 'OPTIONS': {'sslcert': 'client-cert.pem', 'sslkey': '********************', 'sslmode': 'verify-ca', 'sslrootcert': 'server-ca.pem'}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'YE*9YVsdP6KBqQxk'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
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'] |
DEBUG | 1 |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJSTRIPE_FOREIGN_KEY_TO_FIELD | '********************' |
DJSTRIPE_USE_NATIVE_JSONFIELD | True |
DJSTRIPE_WEBHOOK_SECRET | '********************' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp-relay.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'grzegorz@edupanda.pl' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['admin_interface', 'colorfield', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.sites', 'django.contrib.redirects', 'django.contrib.staticfiles', 'ListerExamples', 'django_simple_bulma', 'django_mathjax', 'meta', 'UserBase', 'crispy_forms', 'phonenumber_field', 'library', 'djstripe', 'storages', 'django_extensions', 'accounts'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('ckb', 'Central Kurdish (Sorani)'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('ms', 'Malay'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MATHJAX_CONFIG_DATA | {'CommonHTML': {'scale': '3'}} |
MATHJAX_ENABLED | True |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MESSAGE_TAGS | {10: 'alert-secondary', 20: 'alert-info', 25: 'alert-success', 30: 'alert-warning', 40: 'alert-danger'} |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'EdupandaBeta.middleware.RedirectToNonWww'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
PROJECT_ROOT | '/app/EdupandaBeta' |
ROOT_URLCONF | 'EdupandaBeta.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | True |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'EdupandaBeta.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | 'https://edupanda1.blob.core.windows.net/static/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} |
STRIPE_LIVE_MODE | True |
STRIPE_LIVE_SECRET_KEY | '********************' |
STRIPE_TEST_SECRET_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'], 'debug': 1}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'EdupandaBeta.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
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.