Reverse for 'account_login' not found. 'account_login' is not a valid view function or pattern name.
Request Method: | GET |
---|---|
Request URL: | http://musicseparation.com/contact_us |
Django Version: | 3.0.2 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'account_login' not found. 'account_login' is not a valid view function or pattern name. |
Exception Location: | /usr/local/lib/python3.7/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 677 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.7.4 |
Python Path: | ['/voice_separation', '/usr/local/bin', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'] |
Server time: | Fri, 29 Mar 2024 10:05:50 +0000 |
In template /voice_separation/templates/privacy_policy_base.html
, error at line 121
111 | <!-- <li class="nav-item"><a class="nav-link" href="{% url 'account_logout' %}">Sign--> |
---|---|
112 | <!-- Out</a></li>--> |
113 | <!-- </ul>--> |
114 | <!-- </li>--> |
115 | <!-- {% else %}--> |
116 | |
117 | <li class="nav-item"><a class="nav-link" href="/last_separated_examples">Examples</a></li> |
118 | <li class="has-children"> |
119 | <a class="nav-link">My Account</a> |
120 | <ul class="dropdown"> |
121 | <li class="nav-item"><a class="nav-link" href="{% url 'account_login' %}">Sign |
122 | In</a></li> |
123 | <li class="nav-item"><a class="nav-link" href="{% url 'account_signup' %}">Sign |
124 | Up</a></li> |
125 | </ul> |
126 | </li> |
127 | |
128 | {% endif %} |
129 | <li> |
130 | <a href="/vocal_remover_and_music_separator" class="btn btn-outline-white">Vocal Remover</a> |
131 | </li> |
/usr/local/lib/python3.7/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 'account_login' not found. 'account_login' is not a valid view function or pattern name.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7efd67595fd0>> |
request | <WSGIRequest: GET '/contact_us'> |
/usr/local/lib/python3.7/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 contact_us at 0x7efcf92e78c0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7efd6719af10>> |
request | <WSGIRequest: GET '/contact_us'> |
resolver | <URLResolver 'MusicSeparation.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=MainScreen.views.contact_us, args=(), kwargs={}, url_name=contact_us, app_names=[], namespaces=[], route=contact_us) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7efd67595fd0> |
wrapped_callback | <function contact_us at 0x7efcf92e78c0> |
/usr/local/lib/python3.7/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 contact_us at 0x7efcf92e78c0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7efd6719af10>> |
request | <WSGIRequest: GET '/contact_us'> |
resolver | <URLResolver 'MusicSeparation.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=MainScreen.views.contact_us, args=(), kwargs={}, url_name=contact_us, app_names=[], namespaces=[], route=contact_us) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7efd67595fd0> |
wrapped_callback | <function contact_us at 0x7efcf92e78c0> |
/voice_separation/MainScreen/views.py
in contact_us
def appads(request):
content = 'google.com, pub-3242043393798263, DIRECT, f08c47fec0942fa0'
return HttpResponse(content, content_type='text/plain')
def contact_us(request):
return render(request, "contact_us.html")…
def privacy_policy(request):
return render(request, "privacy_policy.html")
Variable | Value |
---|---|
request | <WSGIRequest: GET '/contact_us'> |
/usr/local/lib/python3.7/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 | None |
request | <WSGIRequest: GET '/contact_us'> |
status | None |
template_name | 'contact_us.html' |
using | None |
/usr/local/lib/python3.7/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 | None |
request | <WSGIRequest: GET '/contact_us'> |
template | <django.template.backends.django.Template object at 0x7efce8602650> |
template_name | 'contact_us.html' |
using | None |
/usr/local/lib/python3.7/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 '/contact_us'> |
self | <django.template.backends.django.Template object at 0x7efce8602650> |
/usr/local/lib/python3.7/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}, {}, {}] |
self | <django.template.base.Template object at 0x7efcf8140c50> |
/usr/local/lib/python3.7/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}, {}, {}] |
self | <django.template.base.Template object at 0x7efcf8140c50> |
/usr/local/lib/python3.7/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}, {}, {}] |
node | <ExtendsNode: extends 'privacy_policy_base.html'> |
self | [<ExtendsNode: extends 'privacy_policy_base.html'>] |
/usr/local/lib/python3.7/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}, {}, {}] |
self | <ExtendsNode: extends 'privacy_policy_base.html'> |
/usr/local/lib/python3.7/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 0x7efce85edb10> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n\n '>]>, 'content_new': <Block Node: content_new. Contents: [<TextNode: '\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7efce85edd10> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}] |
node | <IfNode> |
self | <ExtendsNode: extends 'privacy_policy_base.html'> |
/usr/local/lib/python3.7/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}, {}, {}] |
self | <django.template.base.Template object at 0x7efce85edd10> |
/usr/local/lib/python3.7/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 | ('<!DOCTYPE html>\n' '<html lang="en">\n' '<head>\n' ' <!-- Global site tag (gtag.js) - Google Analytics -->\n' ' <script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-117719973-2"></script>\n' ' <script>\n' ' window.dataLayer = window.dataLayer || [];\n' ' function gtag(){dataLayer.push(arguments);}\n' " gtag('js', new Date());\n" '\n' " gtag('config', 'UA-117719973-2');\n" '\n' '\n' ' </script>\n' '\n' ' <script data-ad-client="ca-pub-3242043393798263" async ' 'src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>\n' '\n' ' <meta charset="utf-8">\n' ' <title>Music Separation</title>\n' ' <meta content="width=device-width, initial-scale=1.0" name="viewport">\n' ' <meta content="music separation ; vocal remover ; 2 stem vocal remover ; ' '5 stem vocal remover" name="keywords">\n' ' <meta content="AI Vocal Remover for karaoke , DJs , Singers , music ' 'producers .We remove vocals and instrumental by using que system . It is ' 'Best Vocal remover you will ever get in the market">\n' ' <!-- Favicons -->\n' ' <link href="img/favicon.png" rel="icon">\n' ' <link href="img/apple-touch-icon.png" rel="apple-touch-icon">\n' '\n' ' <!-- Google Fonts -->\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Poppins:300,400,700|Roboto:300,400,700&display=swap"\n' ' rel="stylesheet">\n' '\n' ' <!-- Bootstrap CSS File -->\n' ' <link href="static/vendor/bootstrap/css/bootstrap.min.css" ' 'rel="stylesheet">\n' '\n' ' <!-- static/vendor CSS Files -->\n' ' <link href="static/vendor/icofont/icofont.min.css" rel="stylesheet">\n' ' <link href="static/vendor/line-awesome/css/line-awesome.min.css" ' 'rel="stylesheet">\n' ' <link href="static/vendor/aos/aos.css" rel="stylesheet">\n' ' <link href="static/vendor/owlcarousel/assets/owl.carousel.min.css" ' 'rel="stylesheet">\n' '\n' '\n' ' <!-- Template Main CSS File -->\n' ' <link href="static/css/style.css" rel="stylesheet">\n' '\n' ' <link type="text/css" rel="stylesheet" ' 'href="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.css"/>\n' '\n' ' <!-- Load polyfills to support older browsers -->\n' ' <script ' 'src="//polyfill.io/v3/polyfill.min.js?features=es2015%2CIntersectionObserver"\n' ' crossorigin="anonymous"></script>\n' '\n' ' <script type="text/javascript" ' 'src="//unpkg.com/vue@latest/dist/vue.min.js"></script>\n' ' <script type="text/javascript" ' 'src="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.js"></script>\n' '\n' ' <!-- Load the following for BootstrapVueIcons support -->\n' ' <script type="text/javascript" ' 'src="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue-icons.min.js"></script>\n' '\n' ' <script type="text/javascript" ' 'src="https://unpkg.com/axios/dist/axios.min.js"></script>\n' ' <!-- =======================================================\n' ' Template Name: SoftLand\n' ' Template URL: ' 'https://bootstrapmade.com/softland-bootstrap-app-landing-page-template/\n' ' Author: BootstrapMade.com\n' ' Author URL: https://bootstrapmade.com/\n' ' ======================================================= -->\n' '</head>\n' '<body>\n' '<div class="site-wrap">\n' '\n' ' <div class="site-mobile-menu site-navbar-target">\n' ' <div class="site-mobile-menu-header">\n' ' <div class="site-mobile-menu-close mt-3">\n' ' <span class="icofont-close js-menu-toggle"></span>\n' ' </div>\n' ' </div>\n' ' <div class="site-mobile-menu-body"></div>\n' ' </div>\n' '\n' ' <header class="site-navbar js-sticky-header site-navbar-target" ' 'role="banner">\n' '\n' ' <div class="container">\n' ' <div class="row align-items-center">\n' '\n' ' <div class="col-6 col-lg-2">\n' ' <h1 class="mb-0 site-logo"><a href="/" class="mb-0"><img ' 'class="img-fluid pr-3 aa-logo-img"\n' ' … <trimmed 5864 bytes string> |
bits | ['<!DOCTYPE html>\n' '<html lang="en">\n' '<head>\n' ' <!-- Global site tag (gtag.js) - Google Analytics -->\n' ' <script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-117719973-2"></script>\n' ' <script>\n' ' window.dataLayer = window.dataLayer || [];\n' ' function gtag(){dataLayer.push(arguments);}\n' " gtag('js', new Date());\n" '\n' " gtag('config', 'UA-117719973-2');\n" '\n' '\n' ' </script>\n' '\n' ' <script data-ad-client="ca-pub-3242043393798263" async ' 'src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>\n' '\n' ' <meta charset="utf-8">\n' ' <title>Music Separation</title>\n' ' <meta content="width=device-width, initial-scale=1.0" name="viewport">\n' ' <meta content="music separation ; vocal remover ; 2 stem vocal remover ; ' '5 stem vocal remover" name="keywords">\n' ' <meta content="AI Vocal Remover for karaoke , DJs , Singers , music ' 'producers .We remove vocals and instrumental by using que system . It is ' 'Best Vocal remover you will ever get in the market">\n' ' <!-- Favicons -->\n' ' <link href="img/favicon.png" rel="icon">\n' ' <link href="img/apple-touch-icon.png" rel="apple-touch-icon">\n' '\n' ' <!-- Google Fonts -->\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Poppins:300,400,700|Roboto:300,400,700&display=swap"\n' ' rel="stylesheet">\n' '\n' ' <!-- Bootstrap CSS File -->\n' ' <link href="static/vendor/bootstrap/css/bootstrap.min.css" ' 'rel="stylesheet">\n' '\n' ' <!-- static/vendor CSS Files -->\n' ' <link href="static/vendor/icofont/icofont.min.css" rel="stylesheet">\n' ' <link href="static/vendor/line-awesome/css/line-awesome.min.css" ' 'rel="stylesheet">\n' ' <link href="static/vendor/aos/aos.css" rel="stylesheet">\n' ' <link href="static/vendor/owlcarousel/assets/owl.carousel.min.css" ' 'rel="stylesheet">\n' '\n' '\n' ' <!-- Template Main CSS File -->\n' ' <link href="static/css/style.css" rel="stylesheet">\n' '\n' ' <link type="text/css" rel="stylesheet" ' 'href="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.css"/>\n' '\n' ' <!-- Load polyfills to support older browsers -->\n' ' <script ' 'src="//polyfill.io/v3/polyfill.min.js?features=es2015%2CIntersectionObserver"\n' ' crossorigin="anonymous"></script>\n' '\n' ' <script type="text/javascript" ' 'src="//unpkg.com/vue@latest/dist/vue.min.js"></script>\n' ' <script type="text/javascript" ' 'src="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.js"></script>\n' '\n' ' <!-- Load the following for BootstrapVueIcons support -->\n' ' <script type="text/javascript" ' 'src="//unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue-icons.min.js"></script>\n' '\n' ' <script type="text/javascript" ' 'src="https://unpkg.com/axios/dist/axios.min.js"></script>\n' ' <!-- =======================================================\n' ' Template Name: SoftLand\n' ' Template URL: ' 'https://bootstrapmade.com/softland-bootstrap-app-landing-page-template/\n' ' Author: BootstrapMade.com\n' ' Author URL: https://bootstrapmade.com/\n' ' ======================================================= -->\n' '</head>\n' '<body>\n' '<div class="site-wrap">\n' '\n' ' <div class="site-mobile-menu site-navbar-target">\n' ' <div class="site-mobile-menu-header">\n' ' <div class="site-mobile-menu-close mt-3">\n' ' <span class="icofont-close js-menu-toggle"></span>\n' ' </div>\n' ' </div>\n' ' <div class="site-mobile-menu-body"></div>\n' ' </div>\n' '\n' ' <header class="site-navbar js-sticky-header site-navbar-target" ' 'role="banner">\n' '\n' ' <div class="container">\n' ' <div class="row align-items-center">\n' '\n' ' <div class="col-6 col-lg-2">\n' ' <h1 class="mb-0 site-logo"><a href="/" class="mb-0"><img ' 'class="img-fluid pr-3 aa-logo-img"\n' ' … <trimmed 5864 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}] |
node | <IfNode> |
self | [<TextNode: '<!DOCTYPE html>\n<html lan'>, <IfNode>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: '\n\n '>]>, <TextNode: '\n '>, <Block Node: content_new. Contents: [<TextNode: '\n '>]>, <TextNode: '\n </div>\n '>] |
/usr/local/lib/python3.7/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}, {}, {}] |
self | <IfNode> |
/usr/local/lib/python3.7/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)…
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}] |
match | True |
nodelist | [<TextNode: '-->\n\n '>, <django.template.defaulttags.URLNode object at 0x7efce85f6710>, <TextNode: '">Sign\n '>, <django.template.defaulttags.URLNode object at 0x7efce85f6890>, <TextNode: '">Sign\n '>] |
self | <IfNode> |
/usr/local/lib/python3.7/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' '\n' ' <li class="nav-item"><a class="nav-link" ' 'href="/last_separated_examples">Examples</a></li>\n' ' <li class="has-children">\n' ' <a class="nav-link">My Account</a>\n' ' <ul class="dropdown">\n' ' <li class="nav-item"><a class="nav-link" ' 'href="') |
bits | ['-->\n' '\n' ' <li class="nav-item"><a class="nav-link" ' 'href="/last_separated_examples">Examples</a></li>\n' ' <li class="has-children">\n' ' <a class="nav-link">My Account</a>\n' ' <ul class="dropdown">\n' ' <li class="nav-item"><a class="nav-link" ' 'href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}] |
node | <django.template.defaulttags.URLNode object at 0x7efce85f6710> |
self | [<TextNode: '-->\n\n '>, <django.template.defaulttags.URLNode object at 0x7efce85f6710>, <TextNode: '">Sign\n '>, <django.template.defaulttags.URLNode object at 0x7efce85f6890>, <TextNode: '">Sign\n '>] |
/usr/local/lib/python3.7/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}, {}, {}] |
self | <django.template.defaulttags.URLNode object at 0x7efce85f6710> |
/usr/local/lib/python3.7/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}, {}, {}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7efd682a0ef0> |
self | <django.template.defaulttags.URLNode object at 0x7efce85f6710> |
url | '' |
view_name | 'account_login' |
/usr/local/lib/python3.7/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 |
---|---|
args | [] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_converters | {} |
ns_pattern | '' |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'MusicSeparation.urls' (None:None) '^/'> |
urlconf | 'MusicSeparation.urls' |
view | 'account_login' |
viewname | 'account_login' |
/usr/local/lib/python3.7/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 | 'account_login' |
lookup_view_s | 'account_login' |
m | None |
msg | ("Reverse for 'account_login' not found. 'account_login' is not a valid view " 'function or pattern name.') |
n | None |
patterns | [] |
possibilities | [] |
self | <URLResolver 'MusicSeparation.urls' (None:None) '^/'> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'musicseparation.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.196.106.106' |
PATH_INFO | '/contact_us' |
QUERY_STRING | '' |
RAW_URI | '/contact_us' |
REMOTE_ADDR | '172.18.0.8' |
REMOTE_PORT | '48450' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.18.0.7', 8000), raddr=('172.18.0.8', 48450)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7efcf8082ed0> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7efce8602290> |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
MusicSeparation.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_DEFAULT_HTTP_PROTOCOL | 'https' |
ACCOUNT_EMAIL_VERIFICATION | 'none' |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/voice_separation' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CORS_ORIGIN_ALLOW_ALL | True |
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.sqlite3', 'HOST': '', 'NAME': '/voice_separation/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
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_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_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 | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_rq', 'push_notifications', 'MainScreen.apps.MainscreenConfig'] |
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'), ('uz', 'Uzbek'), ('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_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'rq_console': {'datefmt': '%H:%M:%S', 'format': '%(asctime)s %(message)s'}}, 'handlers': {'rq_console': {'class': 'rq.utils.ColorizingStreamHandler', 'exclude': ['%(asctime)s'], 'formatter': 'rq_console', 'level': 'DEBUG'}, 'sentry': {'class': 'raven.contrib.django.handlers.SentryHandler', 'level': 'ERROR'}}, 'loggers': {'rq.worker': {'handlers': ['rq_console', 'sentry'], 'level': 'DEBUG'}}, 'version': 1} |
LOGGING_CONFIG | None |
LOGIN_REDIRECT_URL | '/separator' |
LOGIN_URL | '/accounts/login/' |
LOGLEVEL | 'INFO' |
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.locale.LocaleMiddleware', '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 |
PUSH_NOTIFICATIONS_SETTINGS | {'APNS_CERTIFICATE': '/path/to/your/certificate.pem', 'APNS_TOPIC': 'com.example.push_test', 'APNS_USE_ALTERNATIVE_PORT': False, 'APNS_USE_SANDBOX': True, 'CONFIG': 'push_notifications.conf.LegacyConfig', 'FCM_API_KEY': '********************', 'FCM_ERROR_TIMEOUT': None, 'FCM_MAX_RECIPIENTS': 1000, 'FCM_POST_URL': 'https://fcm.googleapis.com/fcm/send', 'GCM_API_KEY': '********************', 'GCM_ERROR_TIMEOUT': None, 'GCM_MAX_RECIPIENTS': 1000, 'GCM_POST_URL': 'https://android.googleapis.com/gcm/send', 'UNIQUE_REG_ID': False, 'UPDATE_ON_DUPLICATE_REG_ID': False, 'USER_MODEL': 'auth.User', 'WNS_ACCESS_URL': 'https://login.live.com/accesstoken.srf', 'WNS_PACKAGE_SECURITY_ID': '[your package security id, e.g: ' "'ms-app://e-3-4-6234...']", 'WNS_SECRET_KEY': '********************', 'WP_CLAIMS': {'sub': 'mailto: development@example.com'}, 'WP_ERROR_TIMEOUT': None, 'WP_POST_URL': {'CHROME': 'https://fcm.googleapis.com/fcm/send', 'EDGE': 'https://wns2-par02p.notify.windows.com/w', 'FIREFOX': 'https://updates.push.services.mozilla.com/wpush/v2', 'OPERA': 'https://fcm.googleapis.com/fcm/send'}, 'WP_PRIVATE_KEY': '********************'} |
REDIS_HOST | 'redis' |
REDIS_PORT | '6379' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': [], 'DEFAULT_PERMISSION_CLASSES': []} |
ROOT_URLCONF | 'MusicSeparation.urls' |
RQ_QUEUES | {'default': {'DB': 0, 'DEFAULT_TIMEOUT': 360, 'HOST': 'redis', 'PORT': 6379}, 'high': {'DB': 0, 'DEFAULT_TIMEOUT': 500, 'HOST': 'redis', 'PORT': 6379}, 'low': {'DB': 0, 'HOST': 'redis', 'PORT': 6379}} |
RQ_SHOW_ADMIN_LINK | True |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | None |
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 | 'MusicSeparation.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIALACCOUNT_EMAIL_REQUIRED | True |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | 'static/' |
STATIC_URL | '/static/' |
STRIPE_PUBLISHABLE_KEY | '********************' |
STRIPE_SECRET_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/voice_separation/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 | 'UTC' |
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 | 'MusicSeparation.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.