Invalid block tag on line 19: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag?
Request Method: | GET |
---|---|
Request URL: | http://www.bryancdixon.com/summer/2020/cins/465/assignments/ |
Django Version: | 4.2.5 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid block tag on line 19: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag? |
Exception Location: | /usr/local/lib/python3.8/site-packages/django/template/base.py, line 558, in invalid_block_tag |
Raised during: | webapp.views.course_view |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.8.18 |
Python Path: | ['/code', '/code/mywebsite', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] |
Server time: | Thu, 28 Mar 2024 18:37:15 +0000 |
In template /code/mywebsite/webapp/templates/assignments.html
, error at line 19
9 | <th width="150">Write Up</th> |
---|---|
10 | <th width="150">Files</th> |
11 | </tr> |
12 | </thead> |
13 | <tbody> |
14 | {% for assignment in assignments %} |
15 | <tr> |
16 | <td><a href="{{ request.path }}{{ assignment.assignment_number }}/">Assignment {{ assignment.assignment_number }}</a></td> |
17 | <td>{{ assignment.duedate }}</td> |
18 | <td><a href="{{ request.path }}{{ assignment.assignment_number }}/">{{ assignment.name }} Write Up</a></td> |
19 | {% ifnotequal assignment.project_files '' %} |
20 | <td><a href="{{ assignment.project_files }}"> {{ assignment.name }} Files</td> |
21 | {% else %} |
22 | <td></td> |
23 | {% endifnotequal %} |
24 | </tr> |
25 | {% endfor %} |
26 | </tbody> |
27 | </table> |
28 | {% endblock %} |
29 |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 505, in parse
# Add the token to the command stack. This is used for error
# messages if further parsing fails due to an unclosed block
# tag.
self.command_stack.append((command, token))
# Get the tag callback function from the ones registered with
# the parser.
try:
compile_func = self.tags[command]…
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
Variable | Value |
---|---|
command | 'ifnotequal' |
filter_expression | <FilterExpression 'assignment.name'> |
nodelist | [<TextNode: '\n <tr>\n <td><a hr'>, <Variable Node: request.path>, <Variable Node: assignment.assignment_number>, <TextNode: '/">Assignment '>, <Variable Node: assignment.assignment_number>, <TextNode: '</a></td>\n <td>'>, <Variable Node: assignment.duedate>, <TextNode: '</td>\n <td><a href="'>, <Variable Node: request.path>, <Variable Node: assignment.assignment_number>, <TextNode: '/">'>, <Variable Node: assignment.name>, <TextNode: ' Write Up</a></td>\n '>] |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "ifnotequal assignmen..."> |
token_type | 2 |
var_node | <Variable Node: assignment.name> |
/usr/local/lib/python3.8/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 | TemplateSyntaxError("Invalid block tag on line 19: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag?") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f811173d0>> |
request | <WSGIRequest: GET '/summer/2020/cins/465/assignments/'> |
/usr/local/lib/python3.8/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 course_view at 0x7f7ad775e0> |
callback_args | () |
callback_kwargs | {'course': 465, 'page': 'assignments', 'program': 'cins', 'semester': 'summer', 'year': 2020} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/summer/2020/cins/465/assignments/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f811173d0> |
wrapped_callback | <function course_view at 0x7f7ad775e0> |
/code/mywebsite/webapp/views.py
, line 165, in course_view
elif page.lower() == "syllabus":
context["title"] = "syllabus"
context["content"] = materials_query.syllabusmd
elif page.lower() == "about":
context["title"] = "about"
context["content"] = materials_query.aboutmd
elif page.lower() == "assignments":
return assignment_view(request, course_query, context, assignment_number)…
else:
# extras = models.ExtraMaterial.objects.filter(materials=materials_query)
context["title"] = page.lower()
context["content"] = ""
# print(page.lower())
for extra in extras:
Variable | Value |
---|---|
assignment_number | -1 |
context | {'assignments': <QuerySet [<Assignment: SU 2020 CINS 465 0>, <Assignment: SU 2020 CINS 465 1>, <Assignment: SU 2020 CINS 465 2>, <Assignment: SU 2020 CINS 465 3>, <Assignment: SU 2020 CINS 465 4>, <Assignment: SU 2020 CINS 465 5>, <Assignment: SU 2020 CINS 465 6>, <Assignment: SU 2020 CINS 465 6>]>, 'base': '/summer/2020/cins/465/', 'header': 'CINS465 - Web Development Fundamentals', 'links': ['about', 'syllabus', 'links', 'repo'], 'title': 'assignments'} |
course | 465 |
course_query | <Course: SU 2020 CINS 465> |
extra | <ExtraMaterial: SU 2020 CINS 465 links> |
extras | <QuerySet [<ExtraMaterial: SU 2020 CINS 465 links>]> |
links | ['about', 'syllabus', 'links', 'repo'] |
materials_query | <CourseMaterial: SU 2020 CINS 465> |
page | 'assignments' |
program | 'cins' |
q_sem | 'SU' |
request | <WSGIRequest: GET '/summer/2020/cins/465/assignments/'> |
sem | ('FA', 'Fall') |
semester | 'summer' |
year | 2020 |
/code/mywebsite/webapp/views.py
, line 315, in assignment_view
return render(request, "gitform.html", context=context)
def assignment_view(request, course_query, context, assignment_number):
assignments = models.Assignment.objects.filter(course=course_query).order_by('duedate')
if assignment_number == -1:
context["assignments"]=assignments
context["title"] = "assignments"
return render(request, "assignments.html", context=context)…
for assignment in assignments:
if assignment.assignment_number == assignment_number:
context["title"] = assignment.name
context["content"] = assignment.writeupmd
r = requests.get(context["content"])
# context["markdowntext"] = r.text
Variable | Value |
---|---|
assignment_number | -1 |
assignments | <QuerySet [<Assignment: SU 2020 CINS 465 0>, <Assignment: SU 2020 CINS 465 1>, <Assignment: SU 2020 CINS 465 2>, <Assignment: SU 2020 CINS 465 3>, <Assignment: SU 2020 CINS 465 4>, <Assignment: SU 2020 CINS 465 5>, <Assignment: SU 2020 CINS 465 6>, <Assignment: SU 2020 CINS 465 6>]> |
context | {'assignments': <QuerySet [<Assignment: SU 2020 CINS 465 0>, <Assignment: SU 2020 CINS 465 1>, <Assignment: SU 2020 CINS 465 2>, <Assignment: SU 2020 CINS 465 3>, <Assignment: SU 2020 CINS 465 4>, <Assignment: SU 2020 CINS 465 5>, <Assignment: SU 2020 CINS 465 6>, <Assignment: SU 2020 CINS 465 6>]>, 'base': '/summer/2020/cins/465/', 'header': 'CINS465 - Web Development Fundamentals', 'links': ['about', 'syllabus', 'links', 'repo'], 'title': 'assignments'} |
course_query | <Course: SU 2020 CINS 465> |
request | <WSGIRequest: GET '/summer/2020/cins/465/assignments/'> |
/usr/local/lib/python3.8/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 | {'assignments': <QuerySet [<Assignment: SU 2020 CINS 465 0>, <Assignment: SU 2020 CINS 465 1>, <Assignment: SU 2020 CINS 465 2>, <Assignment: SU 2020 CINS 465 3>, <Assignment: SU 2020 CINS 465 4>, <Assignment: SU 2020 CINS 465 5>, <Assignment: SU 2020 CINS 465 6>, <Assignment: SU 2020 CINS 465 6>]>, 'base': '/summer/2020/cins/465/', 'header': 'CINS465 - Web Development Fundamentals', 'links': ['about', 'syllabus', 'links', 'repo'], 'title': 'assignments'} |
request | <WSGIRequest: GET '/summer/2020/cins/465/assignments/'> |
status | None |
template_name | 'assignments.html' |
using | None |
/usr/local/lib/python3.8/site-packages/django/template/loader.py
, line 61, in render_to_string
Load a template and render it with a context. Return a 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 | {'assignments': <QuerySet [<Assignment: SU 2020 CINS 465 0>, <Assignment: SU 2020 CINS 465 1>, <Assignment: SU 2020 CINS 465 2>, <Assignment: SU 2020 CINS 465 3>, <Assignment: SU 2020 CINS 465 4>, <Assignment: SU 2020 CINS 465 5>, <Assignment: SU 2020 CINS 465 6>, <Assignment: SU 2020 CINS 465 6>]>, 'base': '/summer/2020/cins/465/', 'header': 'CINS465 - Web Development Fundamentals', 'links': ['about', 'syllabus', 'links', 'repo'], 'title': 'assignments'} |
request | <WSGIRequest: GET '/summer/2020/cins/465/assignments/'> |
template_name | 'assignments.html' |
using | None |
/usr/local/lib/python3.8/site-packages/django/template/loader.py
, line 15, in get_template
Raise TemplateDoesNotExist if no such template exists.
"""
chain = []
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)
Variable | Value |
---|---|
chain | [] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7f8098c520> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7f8098c520>] |
template_name | 'assignments.html' |
using | None |
/usr/local/lib/python3.8/site-packages/django/template/backends/django.py
, line 33, in get_template
self.engine = Engine(self.dirs, self.app_dirs, **options)
def from_string(self, template_code):
return Template(self.engine.from_string(template_code), self)
def get_template(self, template_name):
try:
return Template(self.engine.get_template(template_name), self)…
except TemplateDoesNotExist as exc:
reraise(exc, self)
def get_templatetag_libraries(self, custom_libraries):
"""
Return a collation of template tag libraries from installed
Variable | Value |
---|---|
self | <django.template.backends.django.DjangoTemplates object at 0x7f8098c520> |
template_name | 'assignments.html' |
/usr/local/lib/python3.8/site-packages/django/template/engine.py
, line 175, in get_template
return Template(template_code, engine=self)
def get_template(self, template_name):
"""
Return a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = self.find_template(template_name)…
if not hasattr(template, "render"):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
def render_to_string(self, template_name, context=None):
Variable | Value |
---|---|
self | <Engine: app_dirs=True 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=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'rest_framework': 'rest_framework.templatetags.rest_framework'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
template_name | 'assignments.html' |
/usr/local/lib/python3.8/site-packages/django/template/engine.py
, line 157, in find_template
"Invalid value in template loaders configuration: %r" % loader
)
def find_template(self, name, dirs=None, skip=None):
tried = []
for loader in self.template_loaders:
try:
template = loader.get_template(name, skip=skip)…
return template, template.origin
except TemplateDoesNotExist as e:
tried.extend(e.tried)
raise TemplateDoesNotExist(name, tried=tried)
def from_string(self, template_code):
Variable | Value |
---|---|
dirs | None |
loader | <django.template.loaders.cached.Loader object at 0x7f7b9f0c70> |
name | 'assignments.html' |
self | <Engine: app_dirs=True 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=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'rest_framework': 'rest_framework.templatetags.rest_framework'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
skip | None |
tried | [] |
/usr/local/lib/python3.8/site-packages/django/template/loaders/cached.py
, line 57, in get_template
if isinstance(cached, type) and issubclass(cached, TemplateDoesNotExist):
raise cached(template_name)
elif isinstance(cached, TemplateDoesNotExist):
raise copy_exception(cached)
return cached
try:
template = super().get_template(template_name, skip)…
except TemplateDoesNotExist as e:
self.get_template_cache[key] = (
copy_exception(e) if self.engine.debug else TemplateDoesNotExist
)
raise
else:
Variable | Value |
---|---|
__class__ | <class 'django.template.loaders.cached.Loader'> |
cached | None |
key | 'assignments.html' |
self | <django.template.loaders.cached.Loader object at 0x7f7b9f0c70> |
skip | None |
template_name | 'assignments.html' |
/usr/local/lib/python3.8/site-packages/django/template/loaders/base.py
, line 28, in get_template
try:
contents = self.get_contents(origin)
except TemplateDoesNotExist:
tried.append((origin, "Source does not exist"))
continue
else:
return Template(…
contents,
origin,
origin.template_name,
self.engine,
)
Variable | Value |
---|---|
contents | ('{% extends "base.html" %}\n' '\n' '{% block body_content %}\n' '<table>\n' ' <thead>\n' ' <tr>\n' ' <th width="200">Assignment Number</th>\n' ' <th width="200">Due Date</th>\n' ' <th width="150">Write Up</th>\n' ' <th width="150">Files</th>\n' ' </tr>\n' ' </thead>\n' ' <tbody>\n' ' {% for assignment in assignments %}\n' ' <tr>\n' ' <td><a href="{{ request.path }}{{ assignment.assignment_number ' '}}/">Assignment {{ assignment.assignment_number }}</a></td>\n' ' <td>{{ assignment.duedate }}</td>\n' ' <td><a href="{{ request.path }}{{ assignment.assignment_number }}/">{{ ' 'assignment.name }} Write Up</a></td>\n' " {% ifnotequal assignment.project_files '' %}\n" ' <td><a href="{{ assignment.project_files }}"> {{ assignment.name }} ' 'Files</td>\n' ' {% else %}\n' ' <td></td>\n' ' {% endifnotequal %}\n' ' </tr>\n' ' {% endfor %}\n' ' </tbody>\n' '</table>\n' '{% endblock %}\n') |
origin | <Origin name='/code/mywebsite/webapp/templates/assignments.html'> |
self | <django.template.loaders.cached.Loader object at 0x7f7b9f0c70> |
skip | None |
template_name | 'assignments.html' |
tried | [(<Origin name='/usr/local/lib/python3.8/site-packages/django/contrib/admin/templates/assignments.html'>, 'Source does not exist'), (<Origin name='/usr/local/lib/python3.8/site-packages/django/contrib/auth/templates/assignments.html'>, 'Source does not exist')] |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 154, in __init__
engine = Engine.get_default()
if origin is None:
origin = Origin(UNKNOWN_SOURCE)
self.name = name
self.origin = origin
self.engine = engine
self.source = str(template_string) # May be lazy.
self.nodelist = self.compile_nodelist()…
def __iter__(self):
for node in self.nodelist:
yield from node
def __repr__(self):
Variable | Value |
---|---|
engine | <Engine: app_dirs=True 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=True loaders=[('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])] string_if_invalid='' file_charset='utf-8' libraries={'cache': 'django.templatetags.cache', 'i18n': 'django.templatetags.i18n', 'l10n': 'django.templatetags.l10n', 'static': 'django.templatetags.static', 'tz': 'django.templatetags.tz', 'admin_list': 'django.contrib.admin.templatetags.admin_list', 'admin_modify': 'django.contrib.admin.templatetags.admin_modify', 'admin_urls': 'django.contrib.admin.templatetags.admin_urls', 'log': 'django.contrib.admin.templatetags.log', 'rest_framework': 'rest_framework.templatetags.rest_framework'} builtins=['django.template.defaulttags', 'django.template.defaultfilters', 'django.template.loader_tags'] autoescape=True> |
name | 'assignments.html' |
origin | <Origin name='/code/mywebsite/webapp/templates/assignments.html'> |
self | <Template template_string="{% extends "base.htm..."> |
template_string | ('{% extends "base.html" %}\n' '\n' '{% block body_content %}\n' '<table>\n' ' <thead>\n' ' <tr>\n' ' <th width="200">Assignment Number</th>\n' ' <th width="200">Due Date</th>\n' ' <th width="150">Write Up</th>\n' ' <th width="150">Files</th>\n' ' </tr>\n' ' </thead>\n' ' <tbody>\n' ' {% for assignment in assignments %}\n' ' <tr>\n' ' <td><a href="{{ request.path }}{{ assignment.assignment_number ' '}}/">Assignment {{ assignment.assignment_number }}</a></td>\n' ' <td>{{ assignment.duedate }}</td>\n' ' <td><a href="{{ request.path }}{{ assignment.assignment_number }}/">{{ ' 'assignment.name }} Write Up</a></td>\n' " {% ifnotequal assignment.project_files '' %}\n" ' <td><a href="{{ assignment.project_files }}"> {{ assignment.name }} ' 'Files</td>\n' ' {% else %}\n' ' <td></td>\n' ' {% endifnotequal %}\n' ' </tr>\n' ' {% endfor %}\n' ' </tbody>\n' '</table>\n' '{% endblock %}\n') |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 200, in compile_nodelist
tokens,
self.engine.template_libraries,
self.engine.template_builtins,
self.origin,
)
try:
return parser.parse()…
except Exception as e:
if self.engine.debug:
e.template_debug = self.get_exception_info(e, e.token)
raise
def get_exception_info(self, exception, token):
Variable | Value |
---|---|
lexer | <DebugLexer template_string="{% extends "base.htm...", verbatim=False> |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
self | <Template template_string="{% extends "base.htm..."> |
tokens | [<Block token: "extends "base.html"...">, <Text token: "...">, <Block token: "block body_content...">, <Text token: "<table> <thead> ...">, <Block token: "for assignment in as...">, <Text token: " <tr> <td>...">, <Var token: "request.path...">, <Var token: "assignment.assignmen...">, <Text token: "/">Assignment ...">, <Var token: "assignment.assignmen...">, <Text token: "</a></td> <td>...">, <Var token: "assignment.duedate...">, <Text token: "</td> <td><a h...">, <Var token: "request.path...">, <Var token: "assignment.assignmen...">, <Text token: "/">...">, <Var token: "assignment.name...">, <Text token: " Write Up</a></td> ...">, <Block token: "ifnotequal assignmen...">, <Text token: " <td><a href="...">, <Var token: "assignment.project_f...">, <Text token: ""> ...">, <Var token: "assignment.name...">, <Text token: " Files</td> ...">, <Block token: "else...">, <Text token: " <td></td> ...">, <Block token: "endifnotequal...">, <Text token: " </tr> ...">, <Block token: "endfor...">, <Text token: " </tbody></table>...">, <Block token: "endblock...">, <Text token: "...">] |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 513, in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'extends' |
compile_func | <function do_extends at 0x7f80fde550> |
nodelist | [] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "extends "base.html"..."> |
token_type | 2 |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 511, in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'extends' |
compile_func | <function do_extends at 0x7f80fde550> |
nodelist | [] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "extends "base.html"..."> |
token_type | 2 |
/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py
, line 293, in do_extends
the parent template itself (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
bits[1] = construct_relative_path(parser.origin.template_name, bits[1])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()…
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError(
"'%s' cannot appear more than once in the same template" % bits[0]
)
return ExtendsNode(nodelist, parent_name)
Variable | Value |
---|---|
bits | ['extends', '"base.html"'] |
parent_name | <FilterExpression '"base.html"'> |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "extends "base.html"..."> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 513, in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'block' |
compile_func | <function do_block at 0x7f80fde430> |
nodelist | [<TextNode: '\n\n'>] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "block body_content..."> |
token_type | 2 |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 511, in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'block' |
compile_func | <function do_block at 0x7f80fde430> |
nodelist | [<TextNode: '\n\n'>] |
parse_until | [] |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "block body_content..."> |
token_type | 2 |
/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py
, line 232, in do_block
if block_name in parser.__loaded_blocks:
raise TemplateSyntaxError(
"'%s' tag with name '%s' appears more than once" % (bits[0], block_name)
)
parser.__loaded_blocks.append(block_name)
except AttributeError: # parser.__loaded_blocks isn't a list yet
parser.__loaded_blocks = [block_name]
nodelist = parser.parse(("endblock",))…
# This check is kept for backwards-compatibility. See #3100.
endblock = parser.next_token()
acceptable_endblocks = ("endblock", "endblock %s" % block_name)
if endblock.contents not in acceptable_endblocks:
parser.invalid_block_tag(endblock, "endblock", acceptable_endblocks)
Variable | Value |
---|---|
bits | ['block', 'body_content'] |
block_name | 'body_content' |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "block body_content..."> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 513, in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)…
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f80fd5a60> |
nodelist | [<TextNode: '\n<table>\n <thead>\n <t'>] |
parse_until | ('endblock',) |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "for assignment in as..."> |
token_type | 2 |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 511, in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)…
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'for' |
compile_func | <function do_for at 0x7f80fd5a60> |
nodelist | [<TextNode: '\n<table>\n <thead>\n <t'>] |
parse_until | ('endblock',) |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "for assignment in as..."> |
token_type | 2 |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
, line 853, in do_for
for var in loopvars:
if not var or not invalid_chars.isdisjoint(var):
raise TemplateSyntaxError(
"'for' tag received an invalid argument: %s" % token.contents
)
sequence = parser.compile_filter(bits[in_index + 1])
nodelist_loop = parser.parse(…
(
"empty",
"endfor",
)
)
token = parser.next_token()
Variable | Value |
---|---|
bits | ['for', 'assignment', 'in', 'assignments'] |
in_index | -2 |
invalid_chars | frozenset({"'", '"', '|', ' '}) |
is_reversed | False |
loopvars | ['assignment'] |
parser | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
sequence | <FilterExpression 'assignments'> |
token | <Block token: "for assignment in as..."> |
var | 'assignment' |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 507, in parse
# tag.
self.command_stack.append((command, token))
# Get the tag callback function from the ones registered with
# the parser.
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)…
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)
Variable | Value |
---|---|
command | 'ifnotequal' |
filter_expression | <FilterExpression 'assignment.name'> |
nodelist | [<TextNode: '\n <tr>\n <td><a hr'>, <Variable Node: request.path>, <Variable Node: assignment.assignment_number>, <TextNode: '/">Assignment '>, <Variable Node: assignment.assignment_number>, <TextNode: '</a></td>\n <td>'>, <Variable Node: assignment.duedate>, <TextNode: '</td>\n <td><a href="'>, <Variable Node: request.path>, <Variable Node: assignment.assignment_number>, <TextNode: '/">'>, <Variable Node: assignment.name>, <TextNode: ' Write Up</a></td>\n '>] |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "ifnotequal assignmen..."> |
token_type | 2 |
var_node | <Variable Node: assignment.name> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 558, in invalid_block_tag
e = TemplateSyntaxError(e)
if not hasattr(e, "token"):
e.token = token
return e
def invalid_block_tag(self, token, command, parse_until=None):
if parse_until:
raise self.error(…
token,
"Invalid block tag on line %d: '%s', expected %s. Did you "
"forget to register or load this tag?"
% (
token.lineno,
command,
Variable | Value |
---|---|
command | 'ifnotequal' |
parse_until | ('empty', 'endfor') |
self | <Parser tokens=[<Text token: "...">, <Block token: "endblock...">, <Text token: " </tbody></table>...">, <Block token: "endfor...">, <Text token: " </tr> ...">, <Block token: "endifnotequal...">, <Text token: " <td></td> ...">, <Block token: "else...">, <Text token: " Files</td> ...">, <Var token: "assignment.name...">, <Text token: ""> ...">, <Var token: "assignment.project_f...">, <Text token: " <td><a href="...">]> |
token | <Block token: "ifnotequal assignmen..."> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DJANGO_SETTINGS_MODULE | 'mywebsite.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GPG_KEY | '********************' |
HOME | '/' |
HOSTNAME | 'c4c9076ebd5e' |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip' |
HTTP_HOST | 'www.bryancdixon.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.237.186.170' |
HTTP_X_FORWARDED_HOST | 'www.bryancdixon.com' |
HTTP_X_FORWARDED_PROTO | 'https' |
LANG | 'C.UTF-8' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
PATH_INFO | '/summer/2020/cins/465/assignments/' |
PYTHONUNBUFFERED | '1' |
PYTHON_GET_PIP_SHA256 | '45a2bb8bf2bb5eff16fdd00faef6f29731831c7c59bd9fc2bf1f3bed511ff1fe' |
PYTHON_GET_PIP_URL | 'https://github.com/pypa/get-pip/raw/9af82b715db434abb94a0a6f3569f43e72157346/public/get-pip.py' |
PYTHON_PIP_VERSION | '23.0.1' |
PYTHON_SETUPTOOLS_VERSION | '57.5.0' |
PYTHON_VERSION | '3.8.18' |
QUERY_STRING | '' |
REMOTE_ADDR | '172.18.0.6' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | 'c4c9076ebd5e' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
TZ | 'UTC' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> |
wsgi.file_wrapper | <class 'wsgiref.util.FileWrapper'> |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x7f78a3ec40> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
mywebsite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['www.bryancdixon.com', 'localhost', 'www.bryandixon.dev', 'bryandixon.dev'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/code/mywebsite' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_ACCEPT_CONTENT | ['application/json'] |
CELERY_BROKER_URL | 'redis://redis:6379' |
CELERY_RESULT_BACKEND | 'redis://redis:6379' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
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 | ['https://www.bryancdixon.com', 'https://bryancdixon.com'] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/code/mywebsite/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
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.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 | [] |
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 |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'webapp', 'rest_framework'] |
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 | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['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 |
REST_FRAMEWORK | {'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticatedOrReadOnly',)} |
ROOT_URLCONF | 'mywebsite.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 | 'mywebsite.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 | ['/code/mywebsite/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
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': [], '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 | '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 | 'mywebsite.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.