demoapp.gruppe9.dxfrontiers-ccs.de Open in urlscan Pro
18.245.46.123  Public Scan

URL: https://demoapp.gruppe9.dxfrontiers-ccs.de/
Submission: On November 17 via api from US — Scanned from DE

Form analysis 1 forms found in the DOM

Name: pasteformPOST https://dpaste.com/

<form action="https://dpaste.com/" name="pasteform" id="pasteform" method="post">
  <div id="pastebinTraceback" class="pastebin" style="display: none;">
    <input type="hidden" name="language" value="PythonConsole">
    <input type="hidden" name="title" value="ProgrammingError at /">
    <input type="hidden" name="source" value="Django Dpaste Agent">
    <input type="hidden" name="poster" value="Django">
    <textarea name="content" id="traceback_area" cols="140" rows="25">Environment:


Request Method: GET
Request URL: http://demoapp.gruppe9.dxfrontiers-ccs.de/

Django Version: 5.1.1
Python Version: 3.12.7
Installed Applications:
['polls.apps.PollsConfig',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles']
Installed Middleware:
['awshelper.middleware.AwsHealthCheckMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Template error:
In template /opt/django/src/polls/templates/polls/index.html, error at line 5
   relation "polls_question" does not exist
LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                             ^
   1 : {% extends "bootstrap/base.html" %}
   2 : {% load static %}
   3 : {% block content %}
   4 : &lt;h1&gt;Django Polls App&lt;/h1&gt;
   5 :  {% if latest_question_list %} 
   6 :     &lt;ul class="list-group"&gt;
   7 :     {% for question in latest_question_list %}
   8 :         &lt;li class="list-group-item"&gt;&lt;a href="{% url 'polls:detail' question.id %}"&gt;{{ question.question_text }}&lt;/a&gt;&lt;/li&gt;
   9 :     {% endfor %}
   10 :     &lt;/ul&gt;
   11 : {% else %}
   12 :     &lt;p&gt;No polls are available.&lt;/p&gt;
   13 : {% endif %}
   14 : {% endblock content %}
   15 : 

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/psycopg/cursor.py", line 97, in execute
    raise ex.with_traceback(None)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The above exception (relation "polls_question" does not exist
LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                             ^) was the direct cause of the following exception:
  File "/usr/local/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response
    response = response.render()
               ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/response.py", line 114, in render
    self.content = self.rendered_content
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content
    return template.render(context, self._request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render
    return self.template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 171, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 1008, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 969, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 1008, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 969, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 1008, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/base.py", line 969, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/template/defaulttags.py", line 326, in render
    if match:
       ^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/models/query.py", line 414, in __bool__
    self._fetch_all()
    ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/models/query.py", line 1928, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__
    results = compiler.execute_sql(
              
  File "/usr/local/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1574, in execute_sql
    cursor.execute(sql, params)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 122, in execute
    return super().execute(sql, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 79, in execute
    return self._execute_with_wrappers(
           
  File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    return executor(sql, params, many, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 100, in _execute
    with self.db.wrap_database_errors:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/psycopg/cursor.py", line 97, in execute
    raise ex.with_traceback(None)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Exception Type: ProgrammingError at /
Exception Value: relation "polls_question" does not exist
LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                             ^
</textarea>
    <br><br>
    <input type="submit" value="Share this traceback on a public website">
  </div>
</form>

Text Content

PROGRAMMINGERROR AT /

relation "polls_question" does not exist
LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                             ^

Request Method: GET Request URL: http://demoapp.gruppe9.dxfrontiers-ccs.de/
Django Version: 5.1.1 Exception Type: ProgrammingError Exception Value:

relation "polls_question" does not exist
LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                             ^

Exception Location: /usr/local/lib/python3.12/site-packages/psycopg/cursor.py,
line 97, in execute Raised during: polls.views.IndexView Python Executable:
/usr/local/bin/python3.12 Python Version: 3.12.7 Python Path:

['/opt/django/src',
 '/usr/local/bin',
 '/usr/local/lib/python312.zip',
 '/usr/local/lib/python3.12',
 '/usr/local/lib/python3.12/lib-dynload',
 '/usr/local/lib/python3.12/site-packages']

Server time: Sun, 17 Nov 2024 10:39:47 +0100


ERROR DURING TEMPLATE RENDERING

In template /opt/django/src/polls/templates/polls/index.html, error at line 5


RELATION "POLLS_QUESTION" DOES NOT EXIST LINE 1: ..."QUESTION_TEXT",
"POLLS_QUESTION"."PUB_DATE" FROM "POLLS_QUE... ^

1 {% extends "bootstrap/base.html" %} 2 {% load static %} 3 {% block content %}
4 <h1>Django Polls App</h1> 5 {% if latest_question_list %} 6 <ul
class="list-group"> 7 {% for question in latest_question_list %} 8 <li
class="list-group-item"><a href="{% url 'polls:detail' question.id %}">{{
question.question_text }}</a></li> 9 {% endfor %} 10 </ul> 11 {% else %} 12
<p>No polls are available.</p> 13 {% endif %} 14 {% endblock content %} 15


TRACEBACK SWITCH TO COPY-AND-PASTE VIEW

 * /usr/local/lib/python3.12/site-packages/django/db/backends/utils.py, line
   105, in _execute
   
    98.              warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
   
    99.          self.db.validate_no_broken_transaction()
   
    100.         with self.db.wrap_database_errors:
   
    101.             if params is None:
   
    102.                 # params default might be backend specific.
   
    103.                 return self.cursor.execute(sql)
   
    104.             else:
   
    105.                 return self.cursor.execute(sql, params)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    106. 
   
    107.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
   
    108.         # Raise a warning during app initialization (stored_app_configs is only
   
    109.         # ever set during testing).
   
    110.         if not apps.ready and not apps.stored_app_configs:
   
    111.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
   
   Local vars
   
   Variable Value ignored_wrapper_args
   
   (False,
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,
     'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>})
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   self
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/psycopg/cursor.py, line 97, in
   execute
   
    90.         """
   
    91.         try:
   
    92.             with self._conn.lock:
   
    93.                 self._conn.wait(
   
    94.                     self._execute_gen(query, params, prepare=prepare, binary=binary)
   
    95.                 )
   
    96.         except e._NO_TRACEBACK as ex:
   
    97.             raise ex.with_traceback(None)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    98.          return self
   
    99.  
   
    100.     def executemany(
   
    101.         self, query: Query, params_seq: Iterable[Params], *, returning: bool = False
   
    102.     ) -> None:
   
    103.         """
   
   Local vars
   
   Variable Value binary
   
   None
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   prepare
   
   None
   
   query
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')
   
   self
   
   <django.db.backends.postgresql.base.Cursor [closed] [IDLE] (host=demoappdbstack-demoappdatabaserds209f529a-z01gadn7kvd8.czaigsuwwxut.eu-central-1.rds.amazonaws.com user=postgres database=demoapp) at 0x7f4ce87d31d0>


 * THE ABOVE EXCEPTION (RELATION "POLLS_QUESTION" DOES NOT EXIST LINE 1:
   ..."QUESTION_TEXT", "POLLS_QUESTION"."PUB_DATE" FROM "POLLS_QUE... ^) WAS THE
   DIRECT CAUSE OF THE FOLLOWING EXCEPTION:

 * /usr/local/lib/python3.12/site-packages/django/core/handlers/exception.py,
   line 55, in inner
   
    48. 
   
    49.         return inner
   
    50.     else:
   
    51. 
   
    52.         @wraps(get_response)
   
    53.         def inner(request):
   
    54.             try:
   
    55.                 response = get_response(request)
                                       ^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    56.             except Exception as exc:
   
    57.                 response = response_for_exception(request, exc)
   
    58.             return response
   
    59. 
   
    60.         return inner
   
    61. 
   
   Local vars
   
   Variable Value exc
   
   ProgrammingError('relation "polls_question" does not exist\nLINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...\n                                                             ^')
   
   get_response
   
   <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f4ce8746690>>
   
   request
   
   <WSGIRequest: GET '/'>

 * /usr/local/lib/python3.12/site-packages/django/core/handlers/base.py, line
   220, in _get_response
   
    213.                 self.check_response(
   
    214.                     response,
   
    215.                     middleware_method,
   
    216.                     name="%s.process_template_response"
   
    217.                     % (middleware_method.__self__.__class__.__name__,),
   
    218.                 )
   
    219.             try:
   
    220.                 response = response.render()
                                         ^^^^^^^^^^^^^^^^^
         
         …
   
    221.             except Exception as e:
   
    222.                 response = self.process_exception_by_middleware(e, request)
   
    223.                 if response is None:
   
    224.                     raise
   
    225. 
   
    226.         return response
   
   Local vars
   
   Variable Value callback
   
   <function View.as_view.<locals>.view at 0x7f4ce831b1a0>
   
   callback_args
   
   ()
   
   callback_kwargs
   
   {}
   
   middleware_method
   
   <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>>
   
   request
   
   <WSGIRequest: GET '/'>
   
   response
   
   None
   
   self
   
   <django.core.handlers.wsgi.WSGIHandler object at 0x7f4ce8746690>
   
   wrapped_callback
   
   <function View.as_view.<locals>.view at 0x7f4ce831b1a0>

 * /usr/local/lib/python3.12/site-packages/django/template/response.py, line
   114, in render
   
    107. 
   
    108.         If the content has already been rendered, this is a no-op.
   
    109. 
   
    110.         Return the baked response instance.
   
    111.         """
   
    112.         retval = self
   
    113.         if not self._is_rendered:
   
    114.             self.content = self.rendered_content
                                         ^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    115.             for post_callback in self._post_render_callbacks:
   
    116.                 newretval = post_callback(retval)
   
    117.                 if newretval is not None:
   
    118.                     retval = newretval
   
    119.         return retval
   
    120. 
   
   Local vars
   
   Variable Value retval
   
   <TemplateResponse status_code=200, "text/html; charset=utf-8">
   
   self
   
   <TemplateResponse status_code=200, "text/html; charset=utf-8">

 * /usr/local/lib/python3.12/site-packages/django/template/response.py, line 92,
   in rendered_content
   
    85. 
   
    86.         This *does not* set the final content of the response. To set the
   
    87.         response content, you must either call render(), or set the
   
    88.         content explicitly using the value of this property.
   
    89.         """
   
    90.         template = self.resolve_template(self.template_name)
   
    91.         context = self.resolve_context(self.context_data)
   
    92.         return template.render(context, self._request)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    93. 
   
    94.     def add_post_render_callback(self, callback):
   
    95.         """Add a new post-rendering callback.
   
    96. 
   
    97.         If the response has already been rendered,
   
    98.         invoke the callback immediately.
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <TemplateResponse status_code=200, "text/html; charset=utf-8">
   
   template
   
   <django.template.backends.django.Template object at 0x7f4ce7b55cd0>

 * /usr/local/lib/python3.12/site-packages/django/template/backends/django.py,
   line 107, in render
   
    100.         return self.template.origin
   
    101. 
   
    102.     def render(self, context=None, request=None):
   
    103.         context = make_context(
   
    104.             context, request, autoescape=self.backend.engine.autoescape
   
    105.         )
   
    106.         try:
   
    107.             return self.template.render(context)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    108.         except TemplateDoesNotExist as exc:
   
    109.             reraise(exc, self.backend)
   
    110. 
   
    111. 
   
    112. def copy_exception(exc, backend=None):
   
    113.     """
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   request
   
   <WSGIRequest: GET '/'>
   
   self
   
   <django.template.backends.django.Template object at 0x7f4ce7b55cd0>

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 171, in
   render
   
    164. 
   
    165.     def render(self, context):
   
    166.         "Display stage -- can be called many times"
   
    167.         with context.render_context.push_state(self):
   
    168.             if context.template is None:
   
    169.                 with context.bind_template(self):
   
    170.                     context.template_name = self.name
   
    171.                     return self._render(context)
                                         ^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    172.             else:
   
    173.                 return self._render(context)
   
    174. 
   
    175.     def compile_nodelist(self):
   
    176.         """
   
    177.         Parse and compile the template source into a nodelist. If debug
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <Template template_string="{% extends "bootstra...">

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 163, in
   _render
   
    156.     def __repr__(self):
   
    157.         return '<%s template_string="%s...">' % (
   
    158.             self.__class__.__qualname__,
   
    159.             self.source[:20].replace("\n", ""),
   
    160.         )
   
    161. 
   
    162.     def _render(self, context):
   
    163.         return self.nodelist.render(context)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    164. 
   
    165.     def render(self, context):
   
    166.         "Display stage -- can be called many times"
   
    167.         with context.render_context.push_state(self):
   
    168.             if context.template is None:
   
    169.                 with context.bind_template(self):
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <Template template_string="{% extends "bootstra...">

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 1008,
   in render
   
    1001. 
   
    1002. class NodeList(list):
   
    1003.     # Set to True the first time a non-TextNode is inserted by
   
    1004.     # extend_nodelist().
   
    1005.     contains_nontext = False
   
    1006. 
   
    1007.     def render(self, context):
   
    1008.         return SafeString("".join([node.render_annotated(context) for node in self]))
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          
          …
   
    1009. 
   
    1010.     def get_nodes_by_type(self, nodetype):
   
    1011.         "Return a list of all nodes of the given type"
   
    1012.         nodes = []
   
    1013.         for node in self:
   
    1014.             nodes.extend(node.get_nodes_by_type(nodetype))
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   [<ExtendsNode: extends "bootstrap/base.html">]

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 969, in
   render_annotated
   
    962.         """
   
    963.         Render the node. If debug is True and an exception occurs during
   
    964.         rendering, the exception is annotated with contextual line information
   
    965.         where it occurred in the template. For internal usage this method is
   
    966.         preferred over using the render method directly.
   
    967.         """
   
    968.         try:
   
    969.             return self.render(context)
                                 ^^^^^^^^^^^^^^^^^^^^
         
         …
   
    970.         except Exception as e:
   
    971.             if context.template.engine.debug:
   
    972.                 # Store the actual node that caused the exception.
   
    973.                 if not hasattr(e, "_culprit_node"):
   
    974.                     e._culprit_node = self
   
    975.                 if (
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <ExtendsNode: extends "bootstrap/base.html">

 * /usr/local/lib/python3.12/site-packages/django/template/loader_tags.py, line
   159, in render
   
    152.                     }
   
    153.                     block_context.add_blocks(blocks)
   
    154.                 break
   
    155. 
   
    156.         # Call Template._render explicitly so the parser context stays
   
    157.         # the same.
   
    158.         with context.render_context.push_state(compiled_parent, isolated_context=False):
   
    159.             return compiled_parent._render(context)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    160. 
   
    161. 
   
    162. class IncludeNode(Node):
   
    163.     context_key = "__include_context"
   
    164. 
   
    165.     def __init__(
   
   Local vars
   
   Variable Value block_context
   
   <BlockContext: blocks=defaultdict(<class 'list'>, {'content': [<Block Node: content. Contents: [<TextNode: '\n            '>]>], 'head': [<Block Node: head. Contents: [<TextNode: '\n        '>]>], 'title': [<Block Node: title. Contents: [<TextNode: '\n                Pools Ap'>]>], 'image': [<Block Node: image. Contents: [<TextNode: '\n        '>]>]})>
   
   blocks
   
   {'content': <Block Node: content. Contents: [<TextNode: '\n            '>]>,
    'head': <Block Node: head. Contents: [<TextNode: '\n        '>]>,
    'image': <Block Node: image. Contents: [<TextNode: '\n        '>]>,
    'title': <Block Node: title. Contents: [<TextNode: '\n                Pools Ap'>]>}
   
   compiled_parent
   
   <Template template_string="{% load static %}<!...">
   
   context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   node
   
   <django.template.defaulttags.LoadNode object at 0x7f4ce8351730>
   
   self
   
   <ExtendsNode: extends "bootstrap/base.html">

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 163, in
   _render
   
    156.     def __repr__(self):
   
    157.         return '<%s template_string="%s...">' % (
   
    158.             self.__class__.__qualname__,
   
    159.             self.source[:20].replace("\n", ""),
   
    160.         )
   
    161. 
   
    162.     def _render(self, context):
   
    163.         return self.nodelist.render(context)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    164. 
   
    165.     def render(self, context):
   
    166.         "Display stage -- can be called many times"
   
    167.         with context.render_context.push_state(self):
   
    168.             if context.template is None:
   
    169.                 with context.bind_template(self):
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <Template template_string="{% load static %}<!...">

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 1008,
   in render
   
    1001. 
   
    1002. class NodeList(list):
   
    1003.     # Set to True the first time a non-TextNode is inserted by
   
    1004.     # extend_nodelist().
   
    1005.     contains_nontext = False
   
    1006. 
   
    1007.     def render(self, context):
   
    1008.         return SafeString("".join([node.render_annotated(context) for node in self]))
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          
          …
   
    1009. 
   
    1010.     def get_nodes_by_type(self, nodetype):
   
    1011.         "Return a list of all nodes of the given type"
   
    1012.         nodes = []
   
    1013.         for node in self:
   
    1014.             nodes.extend(node.get_nodes_by_type(nodetype))
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   [<django.template.defaulttags.LoadNode object at 0x7f4ce8351730>,
    <TextNode: '\n<!DOCTYPE html>\n<html la'>,
    <Variable Node: request.csp_nonce>,
    <TextNode: '" rel="stylesheet" href="'>,
    StaticNode(varname=None, path=<FilterExpression '"bootstrap/css/bootstrap.min.css"'>),
    <TextNode: '">\n        '>,
    <Block Node: head. Contents: [<TextNode: '\n        '>]>,
    <TextNode: '\n        <title>\n        '>,
    <Block Node: title. Contents: [<TextNode: '\n                Pools Ap'>]>,
    <TextNode: '\n        </title>\n       '>,
    <IncludeNode: template=<FilterExpression '"bootstrap/nav.html"'>>,
    <TextNode: '\n        '>,
    <Block Node: image. Contents: [<TextNode: '\n        '>]>,
    <TextNode: '\n        <div id="content'>,
    <Block Node: content. Contents: [<TextNode: '\n            '>]>,
    <TextNode: '\n        </div>\n        <'>,
    <Variable Node: request.csp_nonce>,
    <TextNode: '" src="'>,
    StaticNode(varname=None, path=<FilterExpression '"bootstrap/js/bootstrap.min.js"'>),
    <TextNode: '"></script>\n    </body>\n<'>]

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 969, in
   render_annotated
   
    962.         """
   
    963.         Render the node. If debug is True and an exception occurs during
   
    964.         rendering, the exception is annotated with contextual line information
   
    965.         where it occurred in the template. For internal usage this method is
   
    966.         preferred over using the render method directly.
   
    967.         """
   
    968.         try:
   
    969.             return self.render(context)
                                 ^^^^^^^^^^^^^^^^^^^^
         
         …
   
    970.         except Exception as e:
   
    971.             if context.template.engine.debug:
   
    972.                 # Store the actual node that caused the exception.
   
    973.                 if not hasattr(e, "_culprit_node"):
   
    974.                     e._culprit_node = self
   
    975.                 if (
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <Block Node: content. Contents: [<TextNode: '\n            '>]>

 * /usr/local/lib/python3.12/site-packages/django/template/loader_tags.py, line
   65, in render
   
    58.                 push = block = block_context.pop(self.name)
   
    59.                 if block is None:
   
    60.                     block = self
   
    61.                 # Create new block so we can store context without thread-safety issues.
   
    62.                 block = type(self)(block.name, block.nodelist)
   
    63.                 block.context = context
   
    64.                 context["block"] = block
   
    65.                 result = block.nodelist.render(context)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    66.                 if push is not None:
   
    67.                     block_context.push(self.name, push)
   
    68.         return result
   
    69. 
   
    70.     def super(self):
   
    71.         if not hasattr(self, "context"):
   
   Local vars
   
   Variable Value block
   
   <Block Node: content. Contents: [<TextNode: '\n<h1>Django Polls App</h1'>, <IfNode>, <TextNode: '\n'>]>
   
   block_context
   
   <BlockContext: blocks=defaultdict(<class 'list'>, {'content': [<Block Node: content. Contents: [<TextNode: '\n            '>]>], 'head': [<Block Node: head. Contents: [<TextNode: '\n        '>]>], 'title': [<Block Node: title. Contents: [<TextNode: '\n                Pools Ap'>]>], 'image': [<Block Node: image. Contents: [<TextNode: '\n        '>]>]})>
   
   context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   push
   
   <Block Node: content. Contents: [<TextNode: '\n<h1>Django Polls App</h1'>, <IfNode>, <TextNode: '\n'>]>
   
   self
   
   <Block Node: content. Contents: [<TextNode: '\n            '>]>

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 1008,
   in render
   
    1001. 
   
    1002. class NodeList(list):
   
    1003.     # Set to True the first time a non-TextNode is inserted by
   
    1004.     # extend_nodelist().
   
    1005.     contains_nontext = False
   
    1006. 
   
    1007.     def render(self, context):
   
    1008.         return SafeString("".join([node.render_annotated(context) for node in self]))
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          
          …
   
    1009. 
   
    1010.     def get_nodes_by_type(self, nodetype):
   
    1011.         "Return a list of all nodes of the given type"
   
    1012.         nodes = []
   
    1013.         for node in self:
   
    1014.             nodes.extend(node.get_nodes_by_type(nodetype))
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   [<TextNode: '\n<h1>Django Polls App</h1'>, <IfNode>, <TextNode: '\n'>]

 * /usr/local/lib/python3.12/site-packages/django/template/base.py, line 969, in
   render_annotated
   
    962.         """
   
    963.         Render the node. If debug is True and an exception occurs during
   
    964.         rendering, the exception is annotated with contextual line information
   
    965.         where it occurred in the template. For internal usage this method is
   
    966.         preferred over using the render method directly.
   
    967.         """
   
    968.         try:
   
    969.             return self.render(context)
                                 ^^^^^^^^^^^^^^^^^^^^
         
         …
   
    970.         except Exception as e:
   
    971.             if context.template.engine.debug:
   
    972.                 # Store the actual node that caused the exception.
   
    973.                 if not hasattr(e, "_culprit_node"):
   
    974.                     e._culprit_node = self
   
    975.                 if (
   
   Local vars
   
   Variable Value context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <IfNode>

 * /usr/local/lib/python3.12/site-packages/django/template/defaulttags.py, line
   326, in render
   
    319.                 try:
   
    320.                     match = condition.eval(context)
   
    321.                 except VariableDoesNotExist:
   
    322.                     match = None
   
    323.             else:  # else clause
   
    324.                 match = True
   
    325. 
   
    326.             if match:
                             ^^^^^
         
         …
   
    327.                 return nodelist.render(context)
   
    328. 
   
    329.         return ""
   
    330. 
   
    331. 
   
    332. class LoremNode(Node):
   
   Local vars
   
   Variable Value condition
   
   (literal <FilterExpression 'latest_question_list'>)
   
   context
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   match
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   nodelist
   
   [<TextNode: '\n    <ul class="list-grou'>,
    <ForNode: for question in latest_question_list, tail_len: 5>,
    <TextNode: '\n    </ul>\n'>]
   
   self
   
   <IfNode>

 * /usr/local/lib/python3.12/site-packages/django/db/models/query.py, line 414,
   in __bool__
   
    407.             await sync_to_async(self._fetch_all)()
   
    408.             for item in self._result_cache:
   
    409.                 yield item
   
    410. 
   
    411.         return generator()
   
    412. 
   
    413.     def __bool__(self):
   
    414.         self._fetch_all()
                      ^^^^^^^^^^^^^^^^^
         
         …
   
    415.         return bool(self._result_cache)
   
    416. 
   
    417.     def __getitem__(self, k):
   
    418.         """Retrieve an item or slice from the set of results."""
   
    419.         if not isinstance(k, (int, slice)):
   
    420.             raise TypeError(
   
   Local vars
   
   Variable Value self
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^

 * /usr/local/lib/python3.12/site-packages/django/db/models/query.py, line 1928,
   in _fetch_all
   
    1921.         c._known_related_objects = self._known_related_objects
   
    1922.         c._iterable_class = self._iterable_class
   
    1923.         c._fields = self._fields
   
    1924.         return c
   
    1925. 
   
    1926.     def _fetch_all(self):
   
    1927.         if self._result_cache is None:
   
    1928.             self._result_cache = list(self._iterable_class(self))
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          
          …
   
    1929.         if self._prefetch_related_lookups and not self._prefetch_done:
   
    1930.             self._prefetch_related_objects()
   
    1931. 
   
    1932.     def _next_is_sticky(self):
   
    1933.         """
   
    1934.         Indicate that the next filter call and the one following that should
   
   Local vars
   
   Variable Value self
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^

 * /usr/local/lib/python3.12/site-packages/django/db/models/query.py, line 91,
   in __iter__
   
    84. 
   
    85.     def __iter__(self):
   
    86.         queryset = self.queryset
   
    87.         db = queryset.db
   
    88.         compiler = queryset.query.get_compiler(using=db)
   
    89.         # Execute the query. This will also fill compiler.select, klass_info,
   
    90.         # and annotations.
   
    91.         results = compiler.execute_sql(
                              
        
        …
   
    92.             chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size
   
    93.         )
   
    94.         select, klass_info, annotation_col_map = (
   
    95.             compiler.select,
   
    96.             compiler.klass_info,
   
    97.             compiler.annotation_col_map,
   
   Local vars
   
   Variable Value compiler
   
   <SQLCompiler model=Question connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
   
   db
   
   'default'
   
   queryset
   
   Error in formatting: ProgrammingError: relation "polls_question" does not exist
   LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...
                                                                ^
   
   self
   
   <django.db.models.query.ModelIterable object at 0x7f4ce7b57dd0>

 * /usr/local/lib/python3.12/site-packages/django/db/models/sql/compiler.py,
   line 1574, in execute_sql
   
    1567.             else:
   
    1568.                 return
   
    1569.         if chunked_fetch:
   
    1570.             cursor = self.connection.chunked_cursor()
   
    1571.         else:
   
    1572.             cursor = self.connection.cursor()
   
    1573.         try:
   
    1574.             cursor.execute(sql, params)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
          
          …
   
    1575.         except Exception:
   
    1576.             # Might fail for server-side cursors (e.g. connection closed)
   
    1577.             cursor.close()
   
    1578.             raise
   
    1579. 
   
    1580.         if result_type == CURSOR:
   
   Local vars
   
   Variable Value chunk_size
   
   100
   
   chunked_fetch
   
   False
   
   cursor
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   result_type
   
   'multi'
   
   self
   
   <SQLCompiler model=Question connection=<DatabaseWrapper vendor='postgresql' alias='default'> using='default'>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/django/db/backends/utils.py, line
   122, in execute
   
    115. 
   
    116. 
   
    117. class CursorDebugWrapper(CursorWrapper):
   
    118.     # XXX callproc isn't instrumented at this time.
   
    119. 
   
    120.     def execute(self, sql, params=None):
   
    121.         with self.debug_sql(sql, params, use_last_executed_query=True):
   
    122.             return super().execute(sql, params)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    123. 
   
    124.     def executemany(self, sql, param_list):
   
    125.         with self.debug_sql(sql, param_list, many=True):
   
    126.             return super().executemany(sql, param_list)
   
    127. 
   
    128.     @contextmanager
   
   Local vars
   
   Variable Value __class__
   
   <class 'django.db.backends.utils.CursorDebugWrapper'>
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   self
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/django/db/backends/utils.py, line 79,
   in execute
   
    72.             elif kparams is None:
   
    73.                 return self.cursor.callproc(procname, params)
   
    74.             else:
   
    75.                 params = params or ()
   
    76.                 return self.cursor.callproc(procname, params, kparams)
   
    77. 
   
    78.     def execute(self, sql, params=None):
   
    79.         return self._execute_with_wrappers(
                           
        
        …
   
    80.             sql, params, many=False, executor=self._execute
   
    81.         )
   
    82. 
   
    83.     def executemany(self, sql, param_list):
   
    84.         return self._execute_with_wrappers(
   
    85.             sql, param_list, many=True, executor=self._executemany
   
   Local vars
   
   Variable Value params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   self
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/django/db/backends/utils.py, line 92,
   in _execute_with_wrappers
   
    85.             sql, param_list, many=True, executor=self._executemany
   
    86.         )
   
    87. 
   
    88.     def _execute_with_wrappers(self, sql, params, many, executor):
   
    89.         context = {"connection": self.db, "cursor": self}
   
    90.         for wrapper in reversed(self.db.execute_wrappers):
   
    91.             executor = functools.partial(wrapper, executor)
   
    92.         return executor(sql, params, many, context)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    93. 
   
    94.     def _execute(self, sql, params, *ignored_wrapper_args):
   
    95.         # Raise a warning during app initialization (stored_app_configs is only
   
    96.         # ever set during testing).
   
    97.         if not apps.ready and not apps.stored_app_configs:
   
    98.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
   
   Local vars
   
   Variable Value context
   
   {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,
    'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>}
   
   executor
   
   <bound method CursorWrapper._execute of <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>>
   
   many
   
   False
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   self
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/django/db/backends/utils.py, line
   100, in _execute
   
    93. 
   
    94.     def _execute(self, sql, params, *ignored_wrapper_args):
   
    95.         # Raise a warning during app initialization (stored_app_configs is only
   
    96.         # ever set during testing).
   
    97.         if not apps.ready and not apps.stored_app_configs:
   
    98.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
   
    99.         self.db.validate_no_broken_transaction()
   
    100.         with self.db.wrap_database_errors:
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    101.             if params is None:
   
    102.                 # params default might be backend specific.
   
    103.                 return self.cursor.execute(sql)
   
    104.             else:
   
    105.                 return self.cursor.execute(sql, params)
   
    106. 
   
   Local vars
   
   Variable Value ignored_wrapper_args
   
   (False,
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,
     'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>})
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   self
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/django/db/utils.py, line 91, in
   __exit__
   
    84.             db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
   
    85.             if issubclass(exc_type, db_exc_type):
   
    86.                 dj_exc_value = dj_exc_type(*exc_value.args)
   
    87.                 # Only set the 'errors_occurred' flag for errors that may make
   
    88.                 # the connection unusable.
   
    89.                 if dj_exc_type not in (DataError, IntegrityError):
   
    90.                     self.wrapper.errors_occurred = True
   
    91.                 raise dj_exc_value.with_traceback(traceback) from exc_value
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    92. 
   
    93.     def __call__(self, func):
   
    94.         # Note that we are intentionally not using @wraps here for performance
   
    95.         # reasons. Refs #21109.
   
    96.         def inner(*args, **kwargs):
   
    97.             with self:
   
   Local vars
   
   Variable Value db_exc_type
   
   <class 'psycopg.ProgrammingError'>
   
   dj_exc_type
   
   <class 'django.db.utils.ProgrammingError'>
   
   dj_exc_value
   
   ProgrammingError('relation "polls_question" does not exist\nLINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...\n                                                             ^')
   
   exc_type
   
   <class 'psycopg.errors.UndefinedTable'>
   
   exc_value
   
   UndefinedTable('relation "polls_question" does not exist\nLINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que...\n                                                             ^')
   
   self
   
   <django.db.utils.DatabaseErrorWrapper object at 0x7f4ce8388fb0>
   
   traceback
   
   <traceback object at 0x7f4ce7b52240>

 * /usr/local/lib/python3.12/site-packages/django/db/backends/utils.py, line
   105, in _execute
   
    98.              warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
   
    99.          self.db.validate_no_broken_transaction()
   
    100.         with self.db.wrap_database_errors:
   
    101.             if params is None:
   
    102.                 # params default might be backend specific.
   
    103.                 return self.cursor.execute(sql)
   
    104.             else:
   
    105.                 return self.cursor.execute(sql, params)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         
         …
   
    106. 
   
    107.     def _executemany(self, sql, param_list, *ignored_wrapper_args):
   
    108.         # Raise a warning during app initialization (stored_app_configs is only
   
    109.         # ever set during testing).
   
    110.         if not apps.ready and not apps.stored_app_configs:
   
    111.             warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
   
   Local vars
   
   Variable Value ignored_wrapper_args
   
   (False,
    {'connection': <DatabaseWrapper vendor='postgresql' alias='default'>,
     'cursor': <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>})
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   self
   
   <django.db.backends.postgresql.base.CursorDebugWrapper object at 0x7f4ce7b54050>
   
   sql
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')

 * /usr/local/lib/python3.12/site-packages/psycopg/cursor.py, line 97, in
   execute
   
    90.         """
   
    91.         try:
   
    92.             with self._conn.lock:
   
    93.                 self._conn.wait(
   
    94.                     self._execute_gen(query, params, prepare=prepare, binary=binary)
   
    95.                 )
   
    96.         except e._NO_TRACEBACK as ex:
   
    97.             raise ex.with_traceback(None)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        
        …
   
    98.          return self
   
    99.  
   
    100.     def executemany(
   
    101.         self, query: Query, params_seq: Iterable[Params], *, returning: bool = False
   
    102.     ) -> None:
   
    103.         """
   
   Local vars
   
   Variable Value binary
   
   None
   
   params
   
   (datetime.datetime(2024, 11, 17, 9, 39, 47, 202560, tzinfo=datetime.timezone.utc),)
   
   prepare
   
   None
   
   query
   
   ('SELECT "polls_question"."id", "polls_question"."question_text", '
    '"polls_question"."pub_date" FROM "polls_question" WHERE '
    '"polls_question"."pub_date" <= %s ORDER BY "polls_question"."pub_date" DESC '
    'LIMIT 5')
   
   self
   
   <django.db.backends.postgresql.base.Cursor [closed] [IDLE] (host=demoappdbstack-demoappdatabaserds209f529a-z01gadn7kvd8.czaigsuwwxut.eu-central-1.rds.amazonaws.com user=postgres database=demoapp) at 0x7f4ce87d31d0>

Environment: Request Method: GET Request URL:
http://demoapp.gruppe9.dxfrontiers-ccs.de/ Django Version: 5.1.1 Python Version:
3.12.7 Installed Applications: ['polls.apps.PollsConfig',
'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.messages',
'django.contrib.staticfiles'] Installed Middleware:
['awshelper.middleware.AwsHealthCheckMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware'] Template error: In
template /opt/django/src/polls/templates/polls/index.html, error at line 5
relation "polls_question" does not exist LINE 1: ..."question_text",
"polls_question"."pub_date" FROM "polls_que... ^ 1 : {% extends
"bootstrap/base.html" %} 2 : {% load static %} 3 : {% block content %} 4 :
<h1>Django Polls App</h1> 5 : {% if latest_question_list %} 6 : <ul
class="list-group"> 7 : {% for question in latest_question_list %} 8 : <li
class="list-group-item"><a href="{% url 'polls:detail' question.id %}">{{
question.question_text }}</a></li> 9 : {% endfor %} 10 : </ul> 11 : {% else %}
12 : <p>No polls are available.</p> 13 : {% endif %} 14 : {% endblock content %}
15 : Traceback (most recent call last): File
"/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 105,
in _execute return self.cursor.execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/psycopg/cursor.py", line 97, in execute
raise ex.with_traceback(None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The above exception
(relation "polls_question" does not exist LINE 1: ..."question_text",
"polls_question"."pub_date" FROM "polls_que... ^) was the direct cause of the
following exception: File
"/usr/local/lib/python3.12/site-packages/django/core/handlers/exception.py",
line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/core/handlers/base.py", line
220, in _get_response response = response.render() ^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/response.py", line 114,
in render self.content = self.rendered_content ^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/response.py", line 92,
in rendered_content return template.render(context, self._request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/backends/django.py",
line 107, in render return self.template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 171, in
render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 163, in
_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 1008, in
render return SafeString("".join([node.render_annotated(context) for node in
self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 969, in
render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/loader_tags.py", line
159, in render return compiled_parent._render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 163, in
_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 1008, in
render return SafeString("".join([node.render_annotated(context) for node in
self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 969, in
render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/loader_tags.py", line
65, in render result = block.nodelist.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 1008, in
render return SafeString("".join([node.render_annotated(context) for node in
self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/base.py", line 969, in
render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/template/defaulttags.py", line
326, in render if match: ^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/db/models/query.py", line 414,
in __bool__ self._fetch_all() ^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/db/models/query.py", line 1928,
in _fetch_all self._result_cache = list(self._iterable_class(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/db/models/query.py", line 91, in
__iter__ results = compiler.execute_sql( File
"/usr/local/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line
1574, in execute_sql cursor.execute(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line
122, in execute return super().execute(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line
79, in execute return self._execute_with_wrappers( File
"/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 92,
in _execute_with_wrappers return executor(sql, params, many, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 100,
in _execute with self.db.wrap_database_errors: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/db/utils.py", line 91, in
__exit__ raise dj_exc_value.with_traceback(traceback) from exc_value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/django/db/backends/utils.py", line 105,
in _execute return self.cursor.execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.12/site-packages/psycopg/cursor.py", line 97, in execute
raise ex.with_traceback(None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Exception Type:
ProgrammingError at / Exception Value: relation "polls_question" does not exist
LINE 1: ..."question_text", "polls_question"."pub_date" FROM "polls_que... ^




REQUEST INFORMATION


USER

AnonymousUser


GET

No GET data


POST

No POST data


FILES

No FILES data


COOKIES

No cookie data


META

Variable Value HTTP_ACCEPT

'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'

HTTP_ACCEPT_ENCODING

'gzip, deflate, br, zstd'

HTTP_ACCEPT_LANGUAGE

'de-DE,de;q=0.9'

HTTP_HOST

'demoapp.gruppe9.dxfrontiers-ccs.de'

HTTP_PRIORITY

'u=0, i'

HTTP_SEC_FETCH_DEST

'document'

HTTP_SEC_FETCH_MODE

'navigate'

HTTP_SEC_FETCH_SITE

'none'

HTTP_SEC_FETCH_USER

'?1'

HTTP_UPGRADE_INSECURE_REQUESTS

'1'

HTTP_USER_AGENT

('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) '
 'Chrome/130.0.0.0 Safari/537.36')

HTTP_VIA

'2.0 90b31bff657d66dd87e437e4a49bf7a6.cloudfront.net (CloudFront)'

HTTP_X_AMZN_TRACE_ID

'Root=1-6739b9e3-4f6af7f05810527666040e0c'

HTTP_X_AMZ_CF_ID

'6E4pQVIi1QIfxd-UmaA4K6MStOF3v_MAzH7EdVK7qzAHnwruv2O67A=='

HTTP_X_FORWARDED_FOR

'84.19.175.165, 18.68.43.72'

HTTP_X_FORWARDED_PORT

'443'

HTTP_X_FORWARDED_PROTO

'https'

PATH_INFO

'/'

QUERY_STRING

''

RAW_URI

'/'

REMOTE_ADDR

'10.0.0.37'

REMOTE_PORT

'5408'

REQUEST_METHOD

'GET'

SCRIPT_NAME

''

SERVER_NAME

'0.0.0.0'

SERVER_PORT

'8000'

SERVER_PROTOCOL

'HTTP/1.1'

SERVER_SOFTWARE

'gunicorn/23.0.0'

gunicorn.socket

<socket.socket fd=8, family=2, type=1, proto=0, laddr=('10.0.0.78', 8000), raddr=('10.0.0.37', 5408)>

wsgi.errors

<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f4ce7b55270>

wsgi.file_wrapper

<class 'gunicorn.http.wsgi.FileWrapper'>

wsgi.input

<gunicorn.http.body.Body object at 0x7f4ce7b54350>

wsgi.input_terminated

True

wsgi.multiprocess

True

wsgi.multithread

False

wsgi.run_once

False

wsgi.url_scheme

'http'

wsgi.version

(1, 0)


SETTINGS

USING SETTINGS MODULE DJANGODEMOPROJECT.SETTINGS

Setting Value ABSOLUTE_URL_OVERRIDES

{}

ADMINS

[]

ALLOWED_HOSTS

['demoapp.gruppe9.dxfrontiers-ccs.de']

APPEND_SLASH

True

AUTHENTICATION_BACKENDS

['django.contrib.auth.backends.ModelBackend']

AUTH_PASSWORD_VALIDATORS

'********************'

AUTH_USER_MODEL

'auth.User'

BASE_DIR

PosixPath('/opt/django/src')

CACHES

{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}

CACHE_MIDDLEWARE_ALIAS

'default'

CACHE_MIDDLEWARE_KEY_PREFIX

'********************'

CACHE_MIDDLEWARE_SECONDS

600

COLLECT_STATIC

False

CSRF_COOKIE_AGE

31449600

CSRF_COOKIE_DOMAIN

None

CSRF_COOKIE_HTTPONLY

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

['https://demoapp.gruppe9.dxfrontiers-ccs.de']

CSRF_USE_SESSIONS

False

DATABASES

{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_HEALTH_CHECKS': False,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.postgresql',
             'HOST': 'demoappdbstack-demoappdatabaserds209f529a-z01gadn7kvd8.czaigsuwwxut.eu-central-1.rds.amazonaws.com',
             'NAME': 'demoapp',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '5432',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'postgres'}}

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

True

DEBUG_PROPAGATE_EXCEPTIONS

False

DECIMAL_SEPARATOR

'.'

DEFAULT_AUTO_FIELD

'django.db.models.BigAutoField'

DEFAULT_CHARSET

'utf-8'

DEFAULT_EXCEPTION_REPORTER

'django.views.debug.ExceptionReporter'

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

DEFAULT_FROM_EMAIL

'webmaster@localhost'

DEFAULT_INDEX_TABLESPACE

''

DEFAULT_TABLESPACE

''

DISALLOWED_USER_AGENTS

[]

DJANGO_LOG_LEVEL

'WARN'

EMAIL_BACKEND

'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST

'localhost'

EMAIL_HOST_PASSWORD

'********************'

EMAIL_HOST_USER

''

EMAIL_PORT

25

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

False

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

FORMS_URLFIELD_ASSUME_HTTPS

False

FORM_RENDERER

'django.forms.renderers.DjangoTemplates'

IGNORABLE_404_URLS

[]

INSTALLED_APPS

['polls.apps.PollsConfig',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles']

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'),
 ('ug', 'Uyghur'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('uz', 'Uzbek'),
 ('vi', 'Vietnamese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese')]

LANGUAGES_BIDI

['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', '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

{'disable_existing_loggers': True,
 'formatters': {'json': {'class': 'pythonjsonlogger.jsonlogger.JsonFormatter',
                         'format': '{levelname} {processName} {name} {message}',
                         'style': '{'},
                'simple': {'format': '{levelname} {message}', 'style': '{'},
                'verbose': {'format': '{levelname} [{name} - {module}] '
                                      '{message}',
                            'style': '{'}},
 'handlers': {'console': {'class': 'logging.StreamHandler',
                          'formatter': 'verbose',
                          'level': 'DEBUG'}},
 'loggers': {'django': {'handlers': ['console'],
                        'level': 'WARN',
                        'propagate': False}},
 'root': {'handlers': ['console']},
 'version': 1}

LOGGING_CONFIG

'logging.config.dictConfig'

LOGIN_REDIRECT_URL

'/accounts/profile/'

LOGIN_URL

'/accounts/login/'

LOGOUT_REDIRECT_URL

None

MANAGERS

[]

MEDIA_ROOT

PosixPath('/opt/django/media')

MEDIA_URL

'/media/'

MESSAGE_STORAGE

'django.contrib.messages.storage.fallback.FallbackStorage'

MIDDLEWARE

['awshelper.middleware.AwsHealthCheckMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

MIGRATION_MODULES

{}

MONTH_DAY_FORMAT

'F j'

NUMBER_GROUPING

0

PASSWORD_HASHERS

'********************'

PASSWORD_RESET_TIMEOUT

'********************'

PREPEND_WWW

False

PROJECT_DIR

PosixPath('/opt/django/src/djangodemoproject')

ROOT_URLCONF

'djangodemoproject.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

False

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

'djangodemoproject.settings'

SHORT_DATETIME_FORMAT

'm/d/Y P'

SHORT_DATE_FORMAT

'm/d/Y'

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

SILENCED_SYSTEM_CHECKS

[]

STATICFILES_DIRS

[PosixPath('/opt/django/src/djangodemoproject/static')]

STATICFILES_FINDERS

('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')

STATIC_ROOT

PosixPath('/opt/django/dist/static')

STATIC_URL

'/static/'

STORAGES

{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},
 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}

TEMPLATES

[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': [PosixPath('/opt/django/src/djangodemoproject/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']}}]

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

'Europe/Berlin'

USE_I18N

True

USE_THOUSAND_SEPARATOR

False

USE_TZ

True

USE_X_FORWARDED_HOST

False

USE_X_FORWARDED_PORT

False

WSGI_APPLICATION

'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.