Reverse for 'faq' not found. 'faq' is not a valid view function or pattern name.
Request Method: | GET |
---|---|
Request URL: | https://darkseed.fr/comment-ca-marche/ |
Django Version: | 2.2.19 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'faq' not found. 'faq' is not a valid view function or pattern name. |
Exception Location: | /var/www/venv/lib/python3.10/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 673 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.10.12 |
Python Path: | ['.', '', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/var/www/venv/lib/python3.10/site-packages'] |
Server time: | ven, 29 Mar 2024 08:37:44 +0100 |
In template /var/www/darkseed/v2019/_darkseed_/templates/front/base.html
, error at line 37
27 | {% block body %}{% endblock %} |
---|---|
28 | <!-- Menu --> |
29 | {% block menu %}{% endblock %} |
30 | <!-- Contenu --> |
31 | {% block content %}{% endblock %} |
32 | <div class="container-fluid footer "> |
33 | <div class="row row-footer"> |
34 | <div class="col-md-offset-3 col-md-6 col-md-offset-3"> |
35 | <p> |
36 | <a href="#" data-toggle="modal" data-target="#legal">Mentions légales</a> | |
37 | <a href="{% static "CGV.pdf" %}" target="_blank">CGV</a> |<strong> DarkSeed<sup>®</sup> </strong> | |
38 | <a href="https://www.instagram.com/darkseed.fr/" target="_blank"><i class="fa fa-instagram"></i></a>| |
39 | <a href="https://darkseed.fr/youtube" target="_blank"><i class="fa fa-youtube-play"></i></a>| |
40 | <a href="https://twitter.com/DarkSeedFr" target="_blank"><i class="fa my-fa-twitter"></i></a>| |
41 | <a href="https://www.facebook.com/darkseedfr" target="_blank"><i class="fa my-fa-facebook"></i></a> |
42 | </p> |
43 | </div> |
44 | </div> |
45 | </div> |
46 | <div class="modal fade" id="legal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> |
47 | <div class="modal-dialog" role="document"> |
/var/www/venv/lib/python3.10/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)
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 'faq' not found. 'faq' is not a valid view function or pattern name.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x72c731732980>> |
request | <WSGIRequest: GET '/comment-ca-marche/'> |
/var/www/venv/lib/python3.10/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 commentcamarche at 0x72c730f4ad40> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x72c7317967a0>> |
request | <WSGIRequest: GET '/comment-ca-marche/'> |
resolver | <URLResolver '_darkseed_.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=front.views.commentcamarche, args=(), kwargs={}, url_name=commentcamarche, app_names=['front'], namespaces=['front'], route=comment-ca-marche/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x72c731732980> |
wrapped_callback | <function commentcamarche at 0x72c730f4ad40> |
/var/www/venv/lib/python3.10/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 commentcamarche at 0x72c730f4ad40> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x72c7317967a0>> |
request | <WSGIRequest: GET '/comment-ca-marche/'> |
resolver | <URLResolver '_darkseed_.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=front.views.commentcamarche, args=(), kwargs={}, url_name=commentcamarche, app_names=['front'], namespaces=['front'], route=comment-ca-marche/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x72c731732980> |
wrapped_callback | <function commentcamarche at 0x72c730f4ad40> |
/var/www/darkseed/v2019/_darkseed_/./front/views.py
in commentcamarche
## accueil ##
# def accueil(request):
# #return render(request, 'front/accueil.html', locals())
# return redirect('front:accueil', permanent=True)
## commentcamarche ##
def commentcamarche(request):
return render(request, 'front/commentcamarche.html', locals())…
## faq ##
def faq(request):
return render(request, 'front/faq.html', locals())
## a-propos ##
Variable | Value |
---|---|
request | <WSGIRequest: GET '/comment-ca-marche/'> |
/var/www/venv/lib/python3.10/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return 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, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'request': <WSGIRequest: GET '/comment-ca-marche/'>} |
request | <WSGIRequest: GET '/comment-ca-marche/'> |
status | None |
template_name | 'front/commentcamarche.html' |
using | None |
/var/www/venv/lib/python3.10/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 | {'request': <WSGIRequest: GET '/comment-ca-marche/'>} |
request | <WSGIRequest: GET '/comment-ca-marche/'> |
template | <django.template.backends.django.Template object at 0x72c72fbb76d0> |
template_name | 'front/commentcamarche.html' |
using | None |
/var/www/venv/lib/python3.10/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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
request | <WSGIRequest: GET '/comment-ca-marche/'> |
self | <django.template.backends.django.Template object at 0x72c72fbb76d0> |
/var/www/venv/lib/python3.10/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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
self | <django.template.base.Template object at 0x72c72fbb5b40> |
/var/www/venv/lib/python3.10/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
self | <django.template.base.Template object at 0x72c72fbb5b40> |
/var/www/venv/lib/python3.10/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
node | <ExtendsNode: extends "front/base.html"> |
self | [<ExtendsNode: extends "front/base.html">] |
/var/www/venv/lib/python3.10/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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
self | <ExtendsNode: extends "front/base.html"> |
/var/www/venv/lib/python3.10/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, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x72c72fb37f70> |
blocks | {'body': <Block Node: body. Contents: []>, 'content': <Block Node: content. Contents: []>, 'js': <Block Node: js. Contents: []>, 'menu': <Block Node: menu. Contents: []>, 'metadesc': <Block Node: metadesc. Contents: []>, 'title': <Block Node: title. Contents: [<TextNode: 'Darkseed'>]>} |
compiled_parent | <django.template.base.Template object at 0x72c72fb341f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
node | <Block Node: metadesc. Contents: []> |
self | <ExtendsNode: extends "front/base.html"> |
/var/www/venv/lib/python3.10/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
self | <django.template.base.Template object at 0x72c72fb341f0> |
/var/www/venv/lib/python3.10/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n <!-- Menu -->\n ' |
bits | ['<!DOCTYPE html>\n' '<html lang="fr">\n' ' <head>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1">\n' ' <!-- The above 3 meta tags *must* come first in the head; any other head ' 'content must come *after* these tags -->\n' ' ', '<meta name="description" content="Découvre le fonctionnement de nos ' 'seedboxes et leurs avantages.">', '\n <title>', "Darkseed - Comment ça marche ? - Les seedboxes de l'Empire", '</title>\n ', '', '\n <!-- Bootstrap -->\n <link href="', '/static/bootstrap/css/bootstrap.min.css', '" rel="stylesheet">\n <!-- Font-Awesome -->\n <link href="', '/static/font-awesome/css/font-awesome.min.css', '" rel="stylesheet">\n <!-- My style -->\n <link href="', '/static/css/style.css', '" rel="stylesheet" media="screen">\n\n <link rel="icon" href="', '/static/img/favicon.ico', '" />\n' '\n' ' <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and ' 'media queries -->\n' " <!-- WARNING: Respond.js doesn't work if you view the page via file:// " '-->\n' ' <!--[if lt IE 9]>\n' ' <script ' 'src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>\n' ' <script ' 'src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>\n' ' <![endif]-->\n' ' </head>\n' ' ', '<body onload="ClearForm()">', '\n <!-- Menu -->\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
node | <Block Node: menu. Contents: []> |
self | [<TextNode: '<!DOCTYPE html>\n<html lan'>, <Block Node: metadesc. Contents: []>, <TextNode: '\n <title>'>, <Block Node: title. Contents: [<TextNode: 'Darkseed'>]>, <TextNode: '</title>\n '>, <django.template.defaulttags.LoadNode object at 0x72c72fa96950>, <TextNode: '\n <!-- Bootstrap -->\n '>, <django.templatetags.static.StaticNode object at 0x72c72fa95de0>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x72c72fa96f50>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x72c72fa95ba0>, <TextNode: '" rel="stylesheet" media='>, <django.templatetags.static.StaticNode object at 0x72c72fa955d0>, <TextNode: '" />\n\n <!-- HTML5 shim'>, <Block Node: body. Contents: []>, <TextNode: '\n <!-- Menu -->\n '>, <Block Node: menu. Contents: []>, <TextNode: '\n <!-- Contenu -->\n '>, <Block Node: content. Contents: []>, <TextNode: '\n <div class="containe'>, <django.templatetags.static.StaticNode object at 0x72c72fa94850>, <TextNode: '" target="_blank">CGV</a>'>, <django.templatetags.static.StaticNode object at 0x72c72fa96d40>, <TextNode: '"></script>\n <!-- Incl'>, <django.templatetags.static.StaticNode object at 0x72c72fa97970>, <TextNode: '"></script>\n\n <script '>, <django.templatetags.static.StaticNode object at 0x72c72fa94d00>, <TextNode: '"></script>\n <!-- Mato'>, <Block Node: js. Contents: []>, <TextNode: '\n </body>\n</html>\n'>] |
/var/www/venv/lib/python3.10/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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
self | <Block Node: menu. Contents: []> |
/var/www/venv/lib/python3.10/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: menu. Contents: [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x72c72fbb4d60>, <TextNode: '\n <nav class="navbar n'>, <django.template.defaulttags.URLNode object at 0x72c72ff91f30>, <TextNode: '">\n <i'>, <django.templatetags.static.StaticNode object at 0x72c72ff92500>, <TextNode: '">\n </a>\n '>, <django.template.defaulttags.URLNode object at 0x72c72fb37400>, <TextNode: '" role="button"><i class='>, <django.template.defaulttags.URLNode object at 0x72c72fb34dc0>, <TextNode: '#nos-seedboxes"><i class='>, <django.template.defaulttags.URLNode object at 0x72c72fb34b80>, <TextNode: '"><i class="fa fa-questio'>, <django.template.defaulttags.URLNode object at 0x72c72fb37cd0>, <TextNode: '"><i class="fa fa-smile-o'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x72c72fb37f70> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
push | <Block Node: menu. Contents: [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x72c72fbb4d60>, <TextNode: '\n <nav class="navbar n'>, <django.template.defaulttags.URLNode object at 0x72c72ff91f30>, <TextNode: '">\n <i'>, <django.templatetags.static.StaticNode object at 0x72c72ff92500>, <TextNode: '">\n </a>\n '>, <django.template.defaulttags.URLNode object at 0x72c72fb37400>, <TextNode: '" role="button"><i class='>, <django.template.defaulttags.URLNode object at 0x72c72fb34dc0>, <TextNode: '#nos-seedboxes"><i class='>, <django.template.defaulttags.URLNode object at 0x72c72fb34b80>, <TextNode: '"><i class="fa fa-questio'>, <django.template.defaulttags.URLNode object at 0x72c72fb37cd0>, <TextNode: '"><i class="fa fa-smile-o'>]> |
self | <Block Node: menu. Contents: []> |
/var/www/venv/lib/python3.10/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(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('#nos-seedboxes"><i class="fa fa-rocket"></i> Nos seedboxes</a></li>\n' ' <li class="active"><a href="#"><i class="fa ' 'fa-cogs"></i> Comment ça marche ?</a></li>\n' ' <li class="inactive"><a href="') |
bits | ['\n', '', '\n' ' <nav class="navbar navbar-default">\n' ' <div class="container-fluid">\n' ' <div class="navbar-header">\n' ' <button type="button" class="navbar-toggle collapsed" ' 'data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" ' 'aria-expanded="false">\n' ' <span class="sr-only">Toggle navigation</span>\n' ' <span class="icon-bar"></span>\n' ' <span class="icon-bar"></span>\n' ' <span class="icon-bar"></span>\n' ' </button>\n' ' <a class="navbar-brand navbar-left" href="', '/', '">\n <img class="logo" alt="Darkseed" src="', '/static/img/logo2.png', '">\n' ' </a>\n' ' </div>\n' ' <div class="collapse navbar-collapse" ' 'id="bs-example-navbar-collapse-1">\n' ' <a class="btn btn-default navbar-right btn-sign-out" href="', '/console/', '" role="button"><i class="fa fa-sign-in"></i> Ta console</a>\n' ' <ul class="nav navbar-nav navbar-right">\n' ' <li class="inactive"><a href="', '/', '#nos-seedboxes"><i class="fa fa-rocket"></i> Nos seedboxes</a></li>\n' ' <li class="active"><a href="#"><i class="fa ' 'fa-cogs"></i> Comment ça marche ?</a></li>\n' ' <li class="inactive"><a href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
node | <django.template.defaulttags.URLNode object at 0x72c72fb34b80> |
self | [<TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x72c72fbb4d60>, <TextNode: '\n <nav class="navbar n'>, <django.template.defaulttags.URLNode object at 0x72c72ff91f30>, <TextNode: '">\n <i'>, <django.templatetags.static.StaticNode object at 0x72c72ff92500>, <TextNode: '">\n </a>\n '>, <django.template.defaulttags.URLNode object at 0x72c72fb37400>, <TextNode: '" role="button"><i class='>, <django.template.defaulttags.URLNode object at 0x72c72fb34dc0>, <TextNode: '#nos-seedboxes"><i class='>, <django.template.defaulttags.URLNode object at 0x72c72fb34b80>, <TextNode: '"><i class="fa fa-questio'>, <django.template.defaulttags.URLNode object at 0x72c72fb37cd0>, <TextNode: '"><i class="fa fa-smile-o'>] |
/var/www/venv/lib/python3.10/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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
self | <django.template.defaulttags.URLNode object at 0x72c72fb34b80> |
/var/www/venv/lib/python3.10/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}, {}, {}, {'request': <WSGIRequest: GET '/comment-ca-marche/'>}] |
current_app | 'front' |
kwargs | {} |
reverse | <function reverse at 0x72c7323cd360> |
self | <django.template.defaulttags.URLNode object at 0x72c72fb34b80> |
url | '' |
view_name | 'front:faq' |
/var/www/venv/lib/python3.10/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, tuple(ns_converters.items()))
return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
app_list | ['front'] |
args | [] |
current_app | 'front' |
current_ns | 'front' |
current_path | [] |
extra | '' |
kwargs | {} |
ns | 'front' |
ns_converters | {} |
ns_pattern | '' |
parts | ['faq', 'front'] |
path | [] |
prefix | '/' |
resolved_path | ['front'] |
resolver | <URLResolver <module 'front.urls' from '/var/www/darkseed/v2019/_darkseed_/./front/urls.py'> (front:front) ''> |
urlconf | '_darkseed_.urls' |
view | 'faq' |
viewname | 'front:faq' |
/var/www/venv/lib/python3.10/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)…
Variable | Value |
---|---|
_prefix | '/' |
args | () |
kwargs | {} |
lookup_view | 'faq' |
lookup_view_s | 'faq' |
m | None |
msg | ("Reverse for 'faq' not found. 'faq' is not a valid view function or pattern " 'name.') |
n | None |
patterns | [] |
possibilities | [] |
self | <URLResolver <module 'front.urls' from '/var/www/darkseed/v2019/_darkseed_/./front/urls.py'> (front:front) ''> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'darkseed.fr' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/comment-ca-marche/' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.162.130.75' |
REMOTE_PORT | '35972' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/comment-ca-marche/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'darkseed.fr' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.node | b'p' |
uwsgi.version | b'2.0.20-debian' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x72c72fba2ab0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
_darkseed_.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['darkseed.fr', 'console.darkseed.fr', 'admin.darkseed.fr'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/darkseed/v2019/_darkseed_' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CRISPY_TEMPLATE_PACK | 'bootstrap3' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'darkseed_db_p', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'darkseed_user_p'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
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 | 'lightning.b3x.fr' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'fred@darkseed.fr' |
EMAIL_PORT | 587 |
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 | True |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'store', 'front', 'back', 'crispy_forms'] |
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'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('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 | 'fr' |
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 | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | '_darkseed_.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_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | '_darkseed_.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 | ('/var/www/darkseed/v2019/_darkseed_/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/darkseed/v2019/_darkseed_/templates/', '/var/www/venv/darkseed-2019/lib/python3.5/site-packages/crispy_forms/templates/', '/var/www/venv/darkseed-2019/lib/python3.5/site-packages/django/contrib/admin/templates/'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Paris' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | '_darkseed_.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.