Reverse for 'view_messages' not found. 'view_messages' is not a valid view function or pattern name.
Request Method: | GET |
---|---|
Request URL: | https://airships.zarkonnen.com/profile/non |
Django Version: | 1.11.29 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'view_messages' not found. 'view_messages' is not a valid view function or pattern name. |
Exception Location: | /home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 497 |
Python Executable: | /home/web/sites/airships/AirshipsWeb/airshipsweb//bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/home/web/sites/airships/AirshipsWeb/airshipsweb', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages'] |
Server time: | Fri, 29 Mar 2024 11:23:29 +0000 |
In template /home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/airships/templates/base.html
, error at line 22
12 | <script src="{% static "airships/heraldry.js" %}"></script> |
---|---|
13 | <script src="{% static "airships/helpers.js" %}"></script> |
14 | {% block head %}{% endblock %} |
15 | </head> |
16 | <body> |
17 | <div id="outer"> |
18 | <div id="topbar"><div id="topbar-inner"> |
19 | <div id="login"> |
20 | {% if user.is_authenticated %} |
21 | <a href="{% url "profile" user.username %}" id="settings-link">{{ user.username|names }}</a> |
22 | <form method="POST" action="{% url "do_logout" %}" style="display: inline;">{% csrf_token %}<input type="submit" value="Logout"></form> |
23 | {% else %} |
24 | <form method="POST" action="{% url "do_login" %}" style="display: inline;"> |
25 | {% csrf_token %} |
26 | <input type="text" name="username" placeholder="username"> |
27 | <input type="password" name="password" placeholder="password"> |
28 | <input type="submit" value="Login"> |
29 | </form> |
30 | <a href="{% url "ask_for_password_reset" %}" id="reset-password-link" style="margin-left: 1em;">Forgot Password?</a> |
31 | {% endif %} |
32 | </div> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(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 | NoReverseMatch("Reverse for 'view_messages' not found. 'view_messages' is not a valid view function or pattern name.") |
get_response | <bound method BaseHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f274d60>> |
request | <WSGIRequest: GET '/profile/non'> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x7f603c988460>> |
request | <WSGIRequest: GET '/profile/non'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f274d60> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function profile at 0x7f603c6cee50> |
callback_args | ('non',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f603c9e7880>> |
request | <WSGIRequest: GET '/profile/non'> |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=airshipsweb.airships.views.profile, args=('non',), kwargs={}, url_name=profile, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f274d60> |
wrapped_callback | <function profile at 0x7f603c6cee50> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function profile at 0x7f603c6cee50> |
callback_args | ('non',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f603c9e7880>> |
request | <WSGIRequest: GET '/profile/non'> |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=airshipsweb.airships.views.profile, args=('non',), kwargs={}, url_name=profile, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f274d60> |
wrapped_callback | <function profile at 0x7f603c6cee50> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/airships/views.py
in profile
def do_logout(request):
if request.method == 'POST':
logout(request)
messages.add_message(request, messages.INFO, "Logged out.")
return HttpResponseRedirect(reverse('forums'))
def profile(request, username):
return render(request, "profile.html", {"profile_user": go4(User, username=username)})...
def posts(request, username):
return render(request, "posts.html", {"profile_user": go4(User, username=username)})
def settings(request):
if not request.user.is_authenticated():
Variable | Value |
---|---|
request | <WSGIRequest: GET '/profile/non'> |
username | 'non' |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a 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, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'profile_user': <User: non>} |
request | <WSGIRequest: GET '/profile/non'> |
status | None |
template_name | 'profile.html' |
using | None |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'profile_user': <User: non>} |
request | <WSGIRequest: GET '/profile/non'> |
template | <django.template.backends.django.Template object at 0x7f603c1ab7f0> |
template_name | 'profile.html' |
using | None |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
request | <WSGIRequest: GET '/profile/non'> |
self | <django.template.backends.django.Template object at 0x7f603c1ab7f0> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
self | <django.template.base.Template object at 0x7f603c2bee50> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
self | <django.template.base.Template object at 0x7f603c2bee50> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
self | <ExtendsNode: extends "base.html"> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f603c1e1b50> |
blocks | {'content': <Block Node: content. Contents: []>, 'head': <Block Node: head. Contents: []>, 'precontent': <Block Node: precontent. Contents: []>, 'title': <Block Node: title. Contents: [<TextNode: 'Airships'>]>, 'topbar': <Block Node: topbar. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7f603c166190> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f603c1cdcd0> |
self | <ExtendsNode: extends "base.html"> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
self | <django.template.base.Template object at 0x7f603c166190> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n <div id="content">\n ' |
bits | ['', '\n', '', '\n\n<!DOCTYPE html>\n<html>\n <head>\n <title>', 'non - Airships Forums', '</title>\n <link href="', '/static/airships/style.css', '" rel="stylesheet" type="text/css" media="screen">\n' ' <script>\n' ' var charges_path = "', '/static/airships/charges/', '";\n </script>\n <script src="', '/static/airships/heraldry.js', '"></script>\n <script src="', '/static/airships/helpers.js', '"></script>\n ', '', '\n' ' </head>\n' ' <body>\n' ' <div id="outer">\n' ' <div id="topbar"><div id="topbar-inner">\n' ' <div id="login">\n' ' ', '\n' ' <form method="POST" action="/login" style="display: inline;">\n' " <input type='hidden' name='csrfmiddlewaretoken' " "value='iOSfdsfUD2w0DvoV0YQW6kN5AvZ8tcW5EbZvtQu5pRcQP29tgvUuv8xsTZjUZRnG' />\n" ' <input type="text" name="username" placeholder="username">\n' ' <input type="password" name="password" ' 'placeholder="password">\n' ' <input type="submit" value="Login">\n' ' </form>\n' ' <a href="/ask_for_password_reset" id="reset-password-link" ' 'style="margin-left: 1em;">Forgot Password?</a>\n' ' ', '\n' ' </div>\n' '\t<div id="rhs" style="margin-top: 2px; float: right;">\n' ' <a href="', '/download', '" style="float: right; margin-right: 1em;">Downloads</a>\n ', '', '\n </div>\n </div></div>\n ', '', '\n <div id="content">\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
node | <Block Node: content. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f603c1cdcd0>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f603c1cd610>, <TextNode: '\n\n<!DOCTYPE html>\n<html>\n'>, <Block Node: title. Contents: [<TextNode: 'Airships'>]>, <TextNode: '</title>\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f603c1e1ca0>, <TextNode: '" rel="stylesheet" type="'>, <django.templatetags.static.StaticNode object at 0x7f603c1e1be0>, <TextNode: '";\n </script>\n <scr'>, <django.templatetags.static.StaticNode object at 0x7f603c1e1220>, <TextNode: '"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f603c1e1b20>, <TextNode: '"></script>\n '>, <Block Node: head. Contents: []>, <TextNode: '\n </head>\n <body>\n <'>, <IfNode>, <TextNode: '\n </div>\n\t<div id'>, <django.template.defaulttags.URLNode object at 0x7f603c188be0>, <TextNode: '" style="float: right; ma'>, <Block Node: topbar. Contents: []>, <TextNode: '\n </div>\n </d'>, <Block Node: precontent. Contents: []>, <TextNode: '\n <div id="content">'>, <Block Node: content. Contents: []>, <TextNode: '\n </div>\n </div>\n'>] |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
self | <Block Node: content. Contents: []> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n<div id="breadcrumbs"><a'>, <django.template.defaulttags.URLNode object at 0x7f603c213c10>, <TextNode: '">Forums</a> » '>, <Variable Node: profile_user.username|names>, <TextNode: '</div>\n\n<h1>'>, <Variable Node: profile_user.username|names>, <TextNode: '</h1>\n<p>'>, <Variable Node: profile_user.profile.get.title>, <TextNode: ', <a href="'>, <django.template.defaulttags.URLNode object at 0x7f603c18c490>, <TextNode: '">'>, <Variable Node: profile_user.profile.get.num_posts>, <TextNode: ' posts</a><span style="di'>, <Variable Node: profile_user.profile.get.next_title_percent>, <TextNode: 'px; height: 16px; backgro'>, <Variable Node: profile_user.profile.get.next_title_percent>, <TextNode: '% of the way to the next '>, <django.template.defaulttags.URLNode object at 0x7f603c18cd00>, <TextNode: '?receiver='>, <Variable Node: profile_user.username>, <TextNode: '">Send Message</a></p>\n\n'>, <IfEqualNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<canvas id="profile-coa'>, <Variable Node: profile_user.profile.get.about|markdown:"safe">, <TextNode: '\n</div>\n'>, <IfEqualNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<div id="breadcrumbs_bo'>, <django.template.defaulttags.URLNode object at 0x7f603c1661f0>, <TextNode: '">Forums</a> » '>, <Variable Node: profile_user.username|names>, <TextNode: '</div>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f603c1e1b50> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div id="breadcrumbs"><a'>, <django.template.defaulttags.URLNode object at 0x7f603c213c10>, <TextNode: '">Forums</a> » '>, <Variable Node: profile_user.username|names>, <TextNode: '</div>\n\n<h1>'>, <Variable Node: profile_user.username|names>, <TextNode: '</h1>\n<p>'>, <Variable Node: profile_user.profile.get.title>, <TextNode: ', <a href="'>, <django.template.defaulttags.URLNode object at 0x7f603c18c490>, <TextNode: '">'>, <Variable Node: profile_user.profile.get.num_posts>, <TextNode: ' posts</a><span style="di'>, <Variable Node: profile_user.profile.get.next_title_percent>, <TextNode: 'px; height: 16px; backgro'>, <Variable Node: profile_user.profile.get.next_title_percent>, <TextNode: '% of the way to the next '>, <django.template.defaulttags.URLNode object at 0x7f603c18cd00>, <TextNode: '?receiver='>, <Variable Node: profile_user.username>, <TextNode: '">Send Message</a></p>\n\n'>, <IfEqualNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<canvas id="profile-coa'>, <Variable Node: profile_user.profile.get.about|markdown:"safe">, <TextNode: '\n</div>\n'>, <IfEqualNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<div id="breadcrumbs_bo'>, <django.template.defaulttags.URLNode object at 0x7f603c1661f0>, <TextNode: '">Forums</a> » '>, <Variable Node: profile_user.username|names>, <TextNode: '</div>\n'>]> |
self | <Block Node: content. Contents: []> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '% of the way to the next rank.</p>\n\n<p><a href="' |
bits | ['\n<div id="breadcrumbs"><a href="', '/', '">Forums</a> » ', 'non', '</div>\n\n<h1>', 'non', '</h1>\n<p>', 'Ship's Cat', ', <a href="', '/profile/non/posts', '">', '0', ' posts</a><span style="display: block; width: 102px; height: 18px; border: ' '1px solid white; margin-top: 0.5em; margin-bottom: 0.5em;"><span ' 'class="amount" style="display: block; width: ', '0', 'px; height: 16px; background: white; margin: 1px;"> </span></span> ', '0', '% of the way to the next rank.</p>\n\n<p><a href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
node | <django.template.defaulttags.URLNode object at 0x7f603c18cd00> |
self | [<TextNode: '\n<div id="breadcrumbs"><a'>, <django.template.defaulttags.URLNode object at 0x7f603c213c10>, <TextNode: '">Forums</a> » '>, <Variable Node: profile_user.username|names>, <TextNode: '</div>\n\n<h1>'>, <Variable Node: profile_user.username|names>, <TextNode: '</h1>\n<p>'>, <Variable Node: profile_user.profile.get.title>, <TextNode: ', <a href="'>, <django.template.defaulttags.URLNode object at 0x7f603c18c490>, <TextNode: '">'>, <Variable Node: profile_user.profile.get.num_posts>, <TextNode: ' posts</a><span style="di'>, <Variable Node: profile_user.profile.get.next_title_percent>, <TextNode: 'px; height: 16px; backgro'>, <Variable Node: profile_user.profile.get.next_title_percent>, <TextNode: '% of the way to the next '>, <django.template.defaulttags.URLNode object at 0x7f603c18cd00>, <TextNode: '?receiver='>, <Variable Node: profile_user.username>, <TextNode: '">Send Message</a></p>\n\n'>, <IfEqualNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<canvas id="profile-coa'>, <Variable Node: profile_user.profile.get.about|markdown:"safe">, <TextNode: '\n</div>\n'>, <IfEqualNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n<div id="breadcrumbs_bo'>, <django.template.defaulttags.URLNode object at 0x7f603c1661f0>, <TextNode: '">Forums</a> » '>, <Variable Node: profile_user.username|names>, <TextNode: '</div>\n'>] |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
self | <django.template.defaulttags.URLNode object at 0x7f603c18cd00> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/defaulttags.py
in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)...
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: non>}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f603f550940> |
self | <django.template.defaulttags.URLNode object at 0x7f603c18cd00> |
url | '' |
view_name | 'view_messages' |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/urls/base.py
in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver)
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))...
reverse_lazy = lazy(reverse, six.text_type)
def clear_url_caches():
Variable | Value |
---|---|
args | [] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_pattern | '' |
parts | ['view_messages'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
urlconf | 'airshipsweb.urls' |
view | 'view_messages' |
viewname | 'view_messages' |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/urls/resolvers.py
in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)...
class LocaleRegexURLResolver(RegexURLResolver):
"""
A URL resolver that always matches the active language code as URL prefix.
Variable | Value |
---|---|
_prefix | '/' |
args | () |
kwargs | {} |
lookup_view | 'view_messages' |
lookup_view_s | 'view_messages' |
m | None |
msg | ("Reverse for 'view_messages' not found. 'view_messages' is not a valid view " 'function or pattern name.') |
n | None |
patterns | [] |
possibilities | [] |
self | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
text_args | [] |
text_kwargs | {} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/airships_static' |
CONTEXT_PREFIX | '' |
CSRF_COOKIE | 'I3DsKbmuJlm4WW430hAxnPNMi6pvRfqj4qKI0zBFva2U8tPBgOE5MDx9BAJhnURU' |
CSRF_COOKIE_USED | True |
DOCUMENT_ROOT | '/var/www/airships_static' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'airships.zarkonnen.com' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/profile/non' |
PATH_TRANSLATED | '/home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/wsgi.py/profile/non' |
QUERY_STRING | '' |
REMOTE_ADDR | '3.234.253.152' |
REMOTE_PORT | '54254' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/profile/non' |
SCRIPT_FILENAME | '/home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/wsgi.py' |
SCRIPT_NAME | '' |
SERVER_ADDR | '159.89.106.143' |
SERVER_ADMIN | '[no address given]' |
SERVER_NAME | 'airships.zarkonnen.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | ('<address>Apache/2.4.41 (Ubuntu) Server at airships.zarkonnen.com Port ' '443</address>\n') |
SERVER_SOFTWARE | 'Apache/2.4.41 (Ubuntu)' |
SSL_TLS_SNI | 'airships.zarkonnen.com' |
apache.version | (2, 4, 41) |
mod_wsgi.application_group | 'airships.zarkonnen.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1711711409804505' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '443' |
mod_wsgi.path_info | '/profile/non' |
mod_wsgi.process_group | 'airships-ssl' |
mod_wsgi.queue_start | '1711711409804276' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'LhOK3mprREY' |
mod_wsgi.request_start | '1711711409804078' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711711409804628' |
mod_wsgi.thread_id | 1 |
mod_wsgi.thread_requests | 438 |
mod_wsgi.total_requests | 1222 |
mod_wsgi.version | (4, 6, 8) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f603c1f91f0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
airshipsweb.local_settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | (('David Stark', 'david.stark@zarkonnen.com'),) |
ADMIN_MEDIA_PREFIX | '/static/admin/' |
ALLOWED_HOSTS | ['159.89.106.143', 'airships.zarkonnen.com', 'airshipsgame.com', 'www.airshipsgame.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/web/sites/airships/AirshipsWeb/airshipsweb' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '127.0.0.1', 'NAME': 'airships', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'airships'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 36214400 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
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', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
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_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
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 | 'smtp.webfaction.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'zarkonnen' |
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_CHARSET | 'utf-8' |
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 | None |
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' |
FROM_EMAIL | 'david.stark@zarkonnen.com' |
GEOIP_DATABASE | '/var/www/airships_static/GeoLiteCity.dat' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_markdown2', 'kronos', 'airshipsweb.airships') |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('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'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('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'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | (('David Stark', 'david.stark@zarkonnen.com'),) |
MEDIA_ROOT | '/var/www/airships_static/media/' |
MEDIA_URL | '/static/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ('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_DAYS | '********************' |
PREPEND_WWW | False |
RECAPTCHA_PRIVATE | '6LfPXOESAAAAAECo7OuaqXNar7RnK1PhPHu379fS' |
RECAPTCHA_PUBLIC | '6LfPXOESAAAAAPEVqh-0bz-67U426xiEbdQbQeIY' |
RECAPTCHA_SECRET | '********************' |
ROOT_URLCONF | 'airshipsweb.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
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_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 | 'airshipsweb.local_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 | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/airships_static/' |
STATIC_URL | '/static/' |
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']}}] |
TEMPLATE_DEBUG | False |
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_ETAGS | 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 | 'airshipsweb.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
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.