Reverse for 'topic' not found. 'topic' is not a valid view function or pattern name.
Request Method: | GET |
---|---|
Request URL: | https://airships.zarkonnen.com/profile/dlor1234/posts |
Django Version: | 1.11.29 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'topic' not found. 'topic' 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:30:08 +0000 |
In template /home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/airships/templates/base.html
, error at line 18
8 | <link href="{% static "airships/style.css" %}" rel="stylesheet" type="text/css" media="screen"> |
---|---|
9 | <script> |
10 | var charges_path = "{% static "airships/charges/" %}"; |
11 | </script> |
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"> |
/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 'topic' not found. 'topic' 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 0x7f603f276d60>> |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
/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 0x7f603c98a460>> |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f276d60> |
/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 posts at 0x7f603c6d0f70> |
callback_args | ('dlor1234',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f603c9e9880>> |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=airshipsweb.airships.views.posts, args=('dlor1234',), kwargs={}, url_name=posts, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f276d60> |
wrapped_callback | <function posts at 0x7f603c6d0f70> |
/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 posts at 0x7f603c6d0f70> |
callback_args | ('dlor1234',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f603c9e9880>> |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=airshipsweb.airships.views.posts, args=('dlor1234',), kwargs={}, url_name=posts, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f276d60> |
wrapped_callback | <function posts at 0x7f603c6d0f70> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/airships/views.py
in posts
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():
return HttpResponseRedirect(reverse('forums'))
if request.method == 'POST':
profile = request.user.profile.get()
Variable | Value |
---|---|
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
username | 'dlor1234' |
/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: dlor1234>} |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
status | None |
template_name | 'posts.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: dlor1234>} |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
template | <django.template.backends.django.Template object at 0x7f603c29b6d0> |
template_name | 'posts.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: dlor1234>}] |
request | <WSGIRequest: GET '/profile/dlor1234/posts'> |
self | <django.template.backends.django.Template object at 0x7f603c29b6d0> |
/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: dlor1234>}] |
self | <django.template.base.Template object at 0x7f603c306e50> |
/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: dlor1234>}] |
self | <django.template.base.Template object at 0x7f603c306e50> |
/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: dlor1234>}] |
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: dlor1234>}] |
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 0x7f603c2ce820> |
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 0x7f603c2c9520> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: dlor1234>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f603c2cec70> |
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: dlor1234>}] |
self | <django.template.base.Template object at 0x7f603c2c9520> |
/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>', 'Posts - dlor1234 - 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='UISAGWge9GdMJBDc4BB4O1VyEVFsLCTplrErOm1GTVnvlJcbHuqWb1o2E96FKjAm' />\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: dlor1234>}] |
node | <Block Node: content. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f603c2cec70>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f603c2ce580>, <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 0x7f603c2ce2b0>, <TextNode: '" rel="stylesheet" type="'>, <django.templatetags.static.StaticNode object at 0x7f603c2cee80>, <TextNode: '";\n </script>\n <scr'>, <django.templatetags.static.StaticNode object at 0x7f603c2ceac0>, <TextNode: '"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f603c2ce940>, <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 0x7f603c4b03d0>, <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: dlor1234>}] |
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 0x7f603c29bc40>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c29b880>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</div>\n'>, <Variable Node: profile_user.username|names>, <TextNode: '</h1>\n\n<table>\n<tr><th>Co'>, <For Node: for c in profile_user.comments.all, tail_len: 11>, <TextNode: '\n</table>\n\n<div id="bread'>, <django.template.defaulttags.URLNode object at 0x7f603c2d3250>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c2d32b0>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</div>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f603c2ce820> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: dlor1234>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div id="breadcrumbs"><a'>, <django.template.defaulttags.URLNode object at 0x7f603c29bc40>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c29b880>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</div>\n'>, <Variable Node: profile_user.username|names>, <TextNode: '</h1>\n\n<table>\n<tr><th>Co'>, <For Node: for c in profile_user.comments.all, tail_len: 11>, <TextNode: '\n</table>\n\n<div id="bread'>, <django.template.defaulttags.URLNode object at 0x7f603c2d3250>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c2d32b0>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</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 | '</h1>\n\n<table>\n<tr><th>Comment</th><th>Topic</th></tr>\n' |
bits | ['\n<div id="breadcrumbs"><a href="', '/', '">Forums</a> » <a href="', '/profile/dlor1234', '">', 'dlor1234', '</a> » Posts</div>\n\n<h1>Posts - ', 'dlor1234', '</h1>\n\n<table>\n<tr><th>Comment</th><th>Topic</th></tr>\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: dlor1234>}] |
node | <For Node: for c in profile_user.comments.all, tail_len: 11> |
self | [<TextNode: '\n<div id="breadcrumbs"><a'>, <django.template.defaulttags.URLNode object at 0x7f603c29bc40>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c29b880>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</div>\n'>, <Variable Node: profile_user.username|names>, <TextNode: '</h1>\n\n<table>\n<tr><th>Co'>, <For Node: for c in profile_user.comments.all, tail_len: 11>, <TextNode: '\n</table>\n\n<div id="bread'>, <django.template.defaulttags.URLNode object at 0x7f603c2d3250>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c2d32b0>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</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: dlor1234>}] |
self | <For Node: for c in profile_user.comments.all, tail_len: 11> |
/home/web/sites/airships/AirshipsWeb/airshipsweb/lib/python3.8/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))...
if pop_context:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: dlor1234>}] |
i | 0 |
item | <Comment: when I bought the game it didn't give me a registration code only thanking me fo> |
len_values | 1 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <django.template.defaulttags.URLNode object at 0x7f603c2d36a0> |
nodelist | ['\n <tr>\n <td><a href="'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for c in profile_user.comments.all, tail_len: 11> |
unpack | False |
values | <QuerySet [<Comment: when I bought the game it didn't give me a registration code only thanking me fo>]> |
/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: dlor1234>}] |
self | <django.template.defaulttags.URLNode object at 0x7f603c2d36a0> |
/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 | [2, 44] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: dlor1234>}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f603f558940> |
self | <django.template.defaulttags.URLNode object at 0x7f603c2d36a0> |
url | '' |
view_name | 'topic' |
/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 | [2, 44] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_pattern | '' |
parts | ['topic'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
urlconf | 'airshipsweb.urls' |
view | 'topic' |
viewname | 'topic' |
/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 | (2, 44) |
kwargs | {} |
lookup_view | 'topic' |
lookup_view_s | 'topic' |
m | None |
msg | ("Reverse for 'topic' not found. 'topic' is not a valid view function or " 'pattern name.') |
n | None |
patterns | [] |
possibilities | [] |
self | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
text_args | ['2', '44'] |
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 | 'jXstbpmTy4ivQcBzP7Wret7Qay57EJB7KGekjP7lijseskays0LjBtAkaMwkDqi4' |
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/dlor1234/posts' |
PATH_TRANSLATED | '/home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/wsgi.py/profile/dlor1234/posts' |
QUERY_STRING | '' |
REMOTE_ADDR | '23.22.23.162' |
REMOTE_PORT | '46306' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/profile/dlor1234/posts' |
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 | '1711711808142596' |
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/dlor1234/posts' |
mod_wsgi.process_group | 'airships-ssl' |
mod_wsgi.queue_start | '1711711808142325' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | '+DpI9mqXR0Y' |
mod_wsgi.request_start | '1711711808142072' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711711808142763' |
mod_wsgi.thread_id | 3 |
mod_wsgi.thread_requests | 225 |
mod_wsgi.total_requests | 1244 |
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 0x7f603c98c880> |
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.