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/Raenir/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: | Thu, 28 Mar 2024 22:53:14 +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 0x7f603f274d60>> |
request | <WSGIRequest: GET '/profile/Raenir/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 0x7f603c988460>> |
request | <WSGIRequest: GET '/profile/Raenir/posts'> |
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 posts at 0x7f603c6cef70> |
callback_args | ('Raenir',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f603c9e7880>> |
request | <WSGIRequest: GET '/profile/Raenir/posts'> |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=airshipsweb.airships.views.posts, args=('Raenir',), kwargs={}, url_name=posts, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f274d60> |
wrapped_callback | <function posts at 0x7f603c6cef70> |
/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 0x7f603c6cef70> |
callback_args | ('Raenir',) |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f603c9e7880>> |
request | <WSGIRequest: GET '/profile/Raenir/posts'> |
resolver | <RegexURLResolver 'airshipsweb.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=airshipsweb.airships.views.posts, args=('Raenir',), kwargs={}, url_name=posts, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f603f274d60> |
wrapped_callback | <function posts at 0x7f603c6cef70> |
/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/Raenir/posts'> |
username | 'Raenir' |
/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: Raenir>} |
request | <WSGIRequest: GET '/profile/Raenir/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: Raenir>} |
request | <WSGIRequest: GET '/profile/Raenir/posts'> |
template | <django.template.backends.django.Template object at 0x7f603c3134c0> |
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: Raenir>}] |
request | <WSGIRequest: GET '/profile/Raenir/posts'> |
self | <django.template.backends.django.Template object at 0x7f603c3134c0> |
/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: Raenir>}] |
self | <django.template.base.Template object at 0x7f603c2bc5e0> |
/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: Raenir>}] |
self | <django.template.base.Template object at 0x7f603c2bc5e0> |
/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: Raenir>}] |
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: Raenir>}] |
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 0x7f603c217fa0> |
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 0x7f603c3b6f10> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: Raenir>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f603c311970> |
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: Raenir>}] |
self | <django.template.base.Template object at 0x7f603c3b6f10> |
/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 - Raenir - 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='9ETtCpLPFr9p2eoghmU87o31YFlDVMxaf9Ym4hznAQkHHFp198kat6q6lPaZVwFW' />\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: Raenir>}] |
node | <Block Node: content. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x7f603c311970>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f603c311fa0>, <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 0x7f603c347970>, <TextNode: '" rel="stylesheet" type="'>, <django.templatetags.static.StaticNode object at 0x7f603c3472b0>, <TextNode: '";\n </script>\n <scr'>, <django.templatetags.static.StaticNode object at 0x7f603c3475b0>, <TextNode: '"></script>\n <script s'>, <django.templatetags.static.StaticNode object at 0x7f603c217ca0>, <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 0x7f603c264400>, <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: Raenir>}] |
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 0x7f603c313f10>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c313370>, <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 0x7f603c2b7f70>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c2b7be0>, <TextNode: '">'>, <Variable Node: profile_user.username|names>, <TextNode: '</a> » Posts</div>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f603c217fa0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: Raenir>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div id="breadcrumbs"><a'>, <django.template.defaulttags.URLNode object at 0x7f603c313f10>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c313370>, <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 0x7f603c2b7f70>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c2b7be0>, <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/Raenir', '">', 'Raenir', '</a> » Posts</div>\n\n<h1>Posts - ', 'Raenir', '</h1>\n\n<table>\n<tr><th>Comment</th><th>Topic</th></tr>\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: Raenir>}] |
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 0x7f603c313f10>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c313370>, <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 0x7f603c2b7f70>, <TextNode: '">Forums</a> » <a h'>, <django.template.defaulttags.URLNode object at 0x7f603c2b7be0>, <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: Raenir>}] |
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: Raenir>}] |
i | 0 |
item | <Comment: I'm way too proud of myself for that. :/p My next goal will be to do the same th> |
len_values | 28 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 28, 'revcounter0': 27} |
node | <django.template.defaulttags.URLNode object at 0x7f603c2b7820> |
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: I'm way too proud of myself for that. :/p My next goal will be to do the same th>, <Comment: Respawn, are you playing with any handicaps? (like, for example, never using the>, <Comment: It'd be cool if there was a bunch of configurations, and configurations could be>, <Comment: Of particular interest is the Brigand and Pirate factions, because of their simi>, <Comment: Yep, with torpedoes you can reliably miss your target unless it is already mostl>, <Comment: What I would like to see is more post-battle options in general, not just for cr>, <Comment: I think such a functionality would merge very nicely with the window that pops u>, <Comment: I like your balancing suggestions for MP Conquest- it makes plenty of sense. The>, <Comment: This is a simplified account of the hours and iterations that went into this shi>, <Comment: Pip pip, tally ho! I'm Raenir, as you can see from the name beside my post. Long>, <Comment: Instead of spamming the forum with another thread I'll put it here; can we have >, <Comment: Related question: where should I put fanfiction? I'm an avid writer, I'd love to>, <Comment: You have to put the link itself in parenthesis, Stu. Thankfully I have Copy/P>, <Comment: I’m not sure that’s how enemy encounters are generated in Conquest. It seems eve>, <Comment: Ah, alright. Yeah, battle deployments can be generated. On another note, I re>, <Comment: @Psyringe I think you're misunderstanding the request. They aren't requesting fo>, <Comment: Here I am again- new changenotes for the Stormcloud line of ship designs. As >, <Comment: You need a sturdy, non-pathable module? Keels are the way to go. They’re heavy, >, <Comment: Well here’s an idea that has been conversed into the dirt by now. Zark has confi>, <Comment: I agree, the decks are vulnerable bits, especially to fire and boarders, but wit>, '...(remaining elements truncated)...']> |
/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: Raenir>}] |
self | <django.template.defaulttags.URLNode object at 0x7f603c2b7820> |
/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 | [1, 7475] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'profile_user': <User: Raenir>}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f603f550940> |
self | <django.template.defaulttags.URLNode object at 0x7f603c2b7820> |
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 | [1, 7475] |
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 | (1, 7475) |
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 | ['1', '7475'] |
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 | 'kHqe9HjrFiXkHK6fqjZwrunlDuyFzHguqcv7Bz7ZAH8Cmb70i5pyNcKq0En1zrog' |
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/Raenir/posts' |
PATH_TRANSLATED | '/home/web/sites/airships/AirshipsWeb/airshipsweb/airshipsweb/wsgi.py/profile/Raenir/posts' |
QUERY_STRING | '' |
REMOTE_ADDR | '3.238.161.165' |
REMOTE_PORT | '43258' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/profile/Raenir/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 | '1711666394293052' |
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/Raenir/posts' |
mod_wsgi.process_group | 'airships-ssl' |
mod_wsgi.queue_start | '1711666394292805' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'UOFnY2BZSkc' |
mod_wsgi.request_start | '1711666394292560' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711666394293209' |
mod_wsgi.thread_id | 2 |
mod_wsgi.thread_requests | 178 |
mod_wsgi.total_requests | 642 |
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 0x7f603c46fb90> |
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.