Reverse for 'home' with no arguments not found. 1 pattern(s) tried: ['(?P<company>[^/]+)/home/$']
Request Method: | GET |
---|---|
Request URL: | https://www.royplazastore.com/contact/ |
Django Version: | 2.2.10 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'home' with no arguments not found. 1 pattern(s) tried: ['(?P<company>[^/]+)/home/$'] |
Exception Location: | /home/serverchan/django-ecommerce-master/venv2/lib/python3.7/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 673 |
Python Executable: | /home/serverchan/django-ecommerce-master/venv2/bin/python |
Python Version: | 3.7.5 |
Python Path: | ['/home/serverchan/django-ecommerce-master', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/serverchan/django-ecommerce-master/venv2/lib/python3.7/site-packages'] |
Server time: | Tue, 19 Mar 2024 09:46:31 +0800 |
In template /home/serverchan/django-ecommerce-master/templates/base.html
, error at line 0
1 | {% load static %} |
---|---|
2 | {% load google_analytics_js %} |
3 | {% load google_analytics_gtag %} |
4 | |
5 | <!DOCTYPE html> |
6 | <html lang="en"> |
7 | <head> |
8 | {% google_analytics_gtag %} |
9 | |
10 | <meta charset="utf-8" /> |
/home/serverchan/django-ecommerce-master/venv2/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 'home' with no arguments not found. 1 pattern(s) tried: ['(?P<company>[^/]+)/home/$']") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f4a5178b290>> |
request | <WSGIRequest: GET '/contact/'> |
/home/serverchan/django-ecommerce-master/venv2/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 0x7f4a4b02c5f0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method DebugToolbarMiddleware.process_view of <debug_toolbar.middleware.DebugToolbarMiddleware object at 0x7f4a4af88310>> |
request | <WSGIRequest: GET '/contact/'> |
resolver | <URLResolver 'royecommerce.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=core.views.contact_us, args=(), kwargs={}, url_name=contact-us, app_names=['core'], namespaces=['core'], route=contact/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4a5178b290> |
wrapped_callback | <function contact_us at 0x7f4a4b02c5f0> |
/home/serverchan/django-ecommerce-master/venv2/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 0x7f4a4b02c5f0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method DebugToolbarMiddleware.process_view of <debug_toolbar.middleware.DebugToolbarMiddleware object at 0x7f4a4af88310>> |
request | <WSGIRequest: GET '/contact/'> |
resolver | <URLResolver 'royecommerce.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=core.views.contact_us, args=(), kwargs={}, url_name=contact-us, app_names=['core'], namespaces=['core'], route=contact/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4a5178b290> |
wrapped_callback | <function contact_us at 0x7f4a4b02c5f0> |
/home/serverchan/django-ecommerce-master/core/views.py
in contact_us
'form': form
}
if request.user.is_authenticated:
user = request.user
notification_qs = user.notifications.unread()
context.update({'queryset': notification_qs, })
return render(request, 'contactus.html', context)…
def faqs(request):
if request.user.is_authenticated:
user = request.user
notification_qs = user.notifications.unread()
Variable | Value |
---|---|
context | {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>} |
form | <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)> |
request | <WSGIRequest: GET '/contact/'> |
/home/serverchan/django-ecommerce-master/venv2/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 | {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>} |
request | <WSGIRequest: GET '/contact/'> |
status | None |
template_name | 'contactus.html' |
using | None |
/home/serverchan/django-ecommerce-master/venv2/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 | {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>} |
request | <WSGIRequest: GET '/contact/'> |
template | <django.template.backends.django.Template object at 0x7f4a4a57a3d0> |
template_name | 'contactus.html' |
using | None |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
request | <WSGIRequest: GET '/contact/'> |
self | <django.template.backends.django.Template object at 0x7f4a4a57a3d0> |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
self | <django.template.base.Template object at 0x7f4a49cc1350> |
/home/serverchan/django-ecommerce-master/venv2/lib/python3.7/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
self | <django.template.base.Template object at 0x7f4a49cc1350> |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
self | <ExtendsNode: extends "base.html"> |
/home/serverchan/django-ecommerce-master/venv2/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 0x7f4a4a4b5cd0> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: ' '>]>, 'extra_body': <Block Node: extra_body. Contents: [<TextNode: ' '>]>, 'extra_head': <Block Node: extra_head. Contents: [<TextNode: ' '>]>, 'extra_scripts': <Block Node: extra_scripts. Contents: [<TextNode: ' '>]>, 'head_title': <Block Node: head_title. Contents: [<TextNode: 'Roy Plaza Store'>]>, 'paddingtop': <Block Node: paddingtop. Contents: [<TextNode: ' '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f4a49c983d0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f4a4a4b5550> |
self | <ExtendsNode: extends "base.html"> |
/home/serverchan/django-ecommerce-master/venv2/lib/python3.7/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
self | <django.template.base.Template object at 0x7f4a49c983d0> |
/home/serverchan/django-ecommerce-master/venv2/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' ' <div class="mt-5 pt-5 container"></div>\n' '\n' ' <div style="min-height: calc(80vh - 6rem)">\n' ' ') |
bits | ['', '\n ', '', ' \n', '', ' \n\n<!DOCTYPE html>\n<html lang="en">\n <head>\n ', '\n' '<script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-175789833-1"></script>\n' '<script>\n' ' window.dataLayer = window.dataLayer || [];\n' ' function gtag(){dataLayer.push(arguments);}\n' " gtag('js', new Date());\n" '\n' " gtag('config', 'UA-175789833-1');\n" '</script>\n', ' \n' '\n' ' <meta charset="utf-8" />\n' ' <meta\n' ' name="viewport"\n' ' content="width=device-width, initial-scale=1, shrink-to-fit=no"\n' ' />\n' ' <meta http-equiv="x-ua-compatible" content="ie=edge" />\n' ' <title>', 'Roy Plaza Store', '</title>\n ', ' ', '\n' ' <link\n' ' rel="shortcut icon"\n' ' type="image x-icon"\n' ' href="', '/static/img/logo_only_icon.png', '"\n' ' />\n' ' <link\n' ' rel="stylesheet"\n' ' href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"\n' ' />\n' ' <!-- scrollbar new -->\n' ' <!-- <link href="', '/static/css/style3.css', '" rel="stylesheet"> -->\n <!-- ends here -->\n <link href="', '/static/css/bootstrap.css', '" rel="stylesheet" />\n <link href="', '/static/css/mdb.css', '" rel="stylesheet" />\n <link href="', '/static/css/style.min.css', '" rel="stylesheet" />\n' ' <link ' 'href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" ' 'rel="stylesheet" />\n' '\n' ' <!-- -->\n' ' <!-- <link ' 'href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" ' 'rel="stylesheet"\n' ' ' 'integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" ' 'crossorigin="anonymous"> -->\n' '\n' ' <script\n' ' src="https://code.jquery.com/jquery-3.3.1.slim.min.js"\n' ' ' 'integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"\n' ' crossorigin="anonymous"\n' ' ></script>\n' ' <script\n' ' ' 'src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"\n' ' ' 'integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"\n' ' crossorigin="anonymous"\n' ' ></script>\n' ' <script\n' ' ' 'src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"\n' ' ' 'integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"\n' ' crossorigin="anonymous"\n' ' ></script>\n' ' <script\n' ' ' 'src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.23.0/moment.min.js"\n' ' integrity="sha256-VBLiveTKyUZMEzJd6z2mhfxIqz3ZATCuVMawPZGzIfA="\n' ' crossorigin="anonymous"\n' ' ></script>\n' ' <link\n' ' rel="stylesheet"\n' ' ' 'href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.1.2/css/tempusdominus-bootstrap-4.min.css"\n' ' integrity="sha256-XPTBwC3SBoWHSmKasAk01c08M6sIA5gF5+sRxqak2Qs="\n' ' crossorigin="anonymous"\n' ' />\n' ' <script\n' ' ' 'src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.1.2/js/tempusdominus-bootstrap-4.min.js"\n' ' integrity="sha256-z0oKYg6xiLq3yJGsp/LsY9XykbweQlHl42jHv2XTBz4="\n' ' crossorigin="anonymous"\n' ' ></script>\n' '\n' ' <!-- for sidebar -->\n' ' <!-- <link rel="stylesheet"\n' ' ' 'href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css"> ' '-->\n' '\n' ' <!-- -->\n' ' <style type="text/css">\n' ' @import ' '"https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";\n' '\n' ' html,\n' ' body {\n' ' font-family: "Poppins", sans-serif;\n' ' height: 100%;\n' ' background-color: #f3f3f3;\n' ' }\n' '\n' ' header,\n' ' .carousel {\n' ' height: 60vh;\n' ' }\n' '\n' ' footer.page-footer {\n' ' bottom: 0;\n' ' z-index: 30;\n' ' }\n' '\n' ' .marginCarousel{\n' ' … <trimmed 11676 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
node | <Block Node: content. Contents: [<TextNode: ' '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f4a4a4b5550>, <TextNode: '\n '>, <django.template.defaulttags.LoadNode object at 0x7f4a4a4b5ad0>, <TextNode: ' \n'>, <django.template.defaulttags.LoadNode object at 0x7f4a4a4b5190>, <TextNode: ' \n\n<!DOCTYPE html>\n<html '>, <analytical.templatetags.google_analytics_gtag.GoogleAnalyticsGTagNode object at 0x7f4a49c98f10>, <TextNode: ' \n\n <meta charset="utf'>, <Block Node: head_title. Contents: [<TextNode: 'Roy Plaza Store'>]>, <TextNode: '</title>\n '>, <Block Node: extra_head. Contents: [<TextNode: ' '>]>, <TextNode: '\n <link\n rel="sho'>, <django.templatetags.static.StaticNode object at 0x7f4a49c98450>, <TextNode: '"\n />\n <link\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49e507d0>, <TextNode: '" rel="stylesheet"> -->\n '>, <django.templatetags.static.StaticNode object at 0x7f4a4a4b5c10>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f4a4a4b5d10>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f4a4a473910>, <TextNode: '" rel="stylesheet" />\n '>, <analytical.templatetags.google_analytics_js.GoogleAnalyticsJsNode object at 0x7f4a4a473ed0>, <TextNode: '\n </head>\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f4a4a473090>, <TextNode: '\n\n <body style="height: '>, <Block Node: paddingtop. Contents: [<TextNode: ' '>]>, <TextNode: '\n <div class="mt-5 pt-'>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: '\n </div>\n\n '>, <Block Node: extra_body. Contents: [<TextNode: ' '>]>, <TextNode: ' '>, <django.template.loader_tags.IncludeNode object at 0x7f4a4a4b5d50>, <TextNode: ' \n '>, <django.template.loader_tags.IncludeNode object at 0x7f4a4a4b5990>, <TextNode: ' '>, <Block Node: extra_scripts. Contents: [<TextNode: ' '>]>, <TextNode: '\n\n <!-- jQuery Custom '>, <django.template.defaulttags.URLNode object at 0x7f4a4a473ad0>, <TextNode: '",\n });\n $(".up'>, <django.template.defaulttags.URLNode object at 0x7f4a4a473e90>, <TextNode: '" });\n $(".add-billi'>] |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/home/serverchan/django-ecommerce-master/venv2/lib/python3.7/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<style>\n .row {\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98dd0>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98110>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98710>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c981d0>, <TextNode: '">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f4a49c98610>, <TextNode: '\n <div'>, <django.template.defaulttags.URLNode object at 0x7f4a49c98990>, <TextNode: '">Send</a> -->\n\n\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f4a4a4b5cd0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<style>\n .row {\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98dd0>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98110>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98710>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c981d0>, <TextNode: '">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f4a49c98610>, <TextNode: '\n <div'>, <django.template.defaulttags.URLNode object at 0x7f4a49c98990>, <TextNode: '">Send</a> -->\n\n\n '>]> |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/home/serverchan/django-ecommerce-master/venv2/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' ' <div class="form-group">\n' ' <input class="form-control" type="text" name="name" ' 'maxlength="40" required id="id_name"\n' ' placeholder="Name">\n' '\n' ' </div>\n' ' <div class="form-group">\n' ' <input class="form-control" type="email" ' 'name="email" maxlength="254" required id="id_email"\n' ' placeholder="Email">\n' '\n' ' </div>\n' ' <div class="form-group">\n' ' <textarea class="form-control" name="message" ' 'cols="40" rows="10" required id="id_message"\n' ' placeholder="Message"></textarea>\n' ' </div>\n' ' <button type="submit" class="btn btn-warning ' 'float-right">Send</button>\n' ' <!-- <a class=\'btn btn-primary float-right\' href="') |
bits | ['\n' '<style>\n' ' .row {\n' ' display: flex;\n' ' /* equal height of the children */\n' ' }\n' '\n' ' .col {\n' ' flex: 1;\n' ' /* additionally, equal width */\n' '\n' '\n' ' }\n' '</style>\n' '\n' '<div class="d-md-flex h-md-100 align-items-center">\n' '\n' ' <!-- First Half -->\n' ' <div class="row">\n' ' <div class="col-md-6 p-0 bg-white h-md-100">\n' ' <div class="d-md-flex align-items-center h-100 p-5 text-left ' 'justify-content-center">\n' ' <div class="logoarea pt-2 pb-2">\n' ' <h2 style="color: #000083; font-weight: 600;">Contact ' 'us</h2>\n' ' <p>Please feel free to contact us if you have any ' 'further questions or concerns by signing up on the\n' ' message\n' ' section. For cancellation, order status inquiry, and ' 'returns, please log in to your ROY Plaza\n' ' store\n' ' account\n' ' and\n' ' proceed to the Order History, or call us at ' '828-3385. We are here to serve you everyday! </p>\n' ' <br>\n' ' <h3>ADDRESS</h3>\n' ' <p>ROY Plaza Corporation<br>\n' ' Lucio T. Alkuino St.<br>\n' ' Poblacion, Valencia City<br>\n' ' </p>\n' ' <h3>Phone</h3>\n' ' <p>Customer Service<br>\n' ' Telefax: 828-3385<br>\n' ' CWD: 828-3268<br>\n' ' </p>\n' ' <h3>Social Media</h3>\n' ' <div>\n' ' <a href="https://www.facebook.com/RoyPlazaValencia" ' 'target="_blank">\n' ' <img style="filter: invert();" src="', '/static/img/facebook_link_white%402x.png', '">\n' ' </a>\n' '\n' ' <a ' 'href="https://www.youtube.com/channel/UCckfTcz5bCseA36e-0BbtCg?view_as=subscriber"\n' ' target="_blank">\n' ' <img style="filter: invert();" src="', '/static/img/youtube_link_white%402x.png', '">\n' ' </a>\n' '\n' ' <a ' 'href="https://www.instagram.com/royplaza_official/" target="_blank">\n' ' <img style="filter: invert();" src="', '/static/img/instagram_link_white%402x.png', '">\n' ' </a>\n' '\n' ' <a href="https://www.tiktok.com/@royplaza_valencia" ' 'target="_blank">\n' ' <img style="filter: invert();" src="', '/static/img/tiktok_link_white%402x.png', '">\n' ' </a>\n' '\n' ' </div>\n' ' </div>\n' ' </div>\n' ' </div>\n' '\n' ' <!-- Second Half -->\n' '\n' ' <div class="col-md-6 p-0 bg-white h-md-100 loginarea">\n' ' <div class="d-md-flex align-items-center h-md-100 p-5 ' 'justify-content-center">\n' ' <form action=" ." method="post">\n' ' <h2 style="color: #000083; font-weight: 600;">Leave us a ' 'message</h2>\n' '\n' ' ', '<input type="hidden" name="csrfmiddlewaretoken" ' 'value="O022NPkb5KIKewQIh1H7VrgOYRb4YXTHC3VAsrScjpd7gZDCqXn0A8UG5OqZpmcs">', '\n' ' <div class="form-group">\n' ' <input class="form-control" type="text" name="name" ' 'maxlength="40" required id="id_name"\n' ' placeholder="Name">\n' '\n' ' </div>\n' ' <div class="form-group">\n' ' <input class="form-control" type="email" ' 'name="email" maxlength="254" required id="id_email"\n' ' placeholder="Email">\n' '\n' ' </div>\n' ' <div clas… <trimmed 4515 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
node | <django.template.defaulttags.URLNode object at 0x7f4a49c98990> |
self | [<TextNode: '\n<style>\n .row {\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98dd0>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98110>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c98710>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f4a49c981d0>, <TextNode: '">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f4a49c98610>, <TextNode: '\n <div'>, <django.template.defaulttags.URLNode object at 0x7f4a49c98990>, <TextNode: '">Send</a> -->\n\n\n '>] |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
self | <django.template.defaulttags.URLNode object at 0x7f4a49c98990> |
/home/serverchan/django-ecommerce-master/venv2/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}, {}, {}, {'form': <ContactUsForm bound=False, valid=Unknown, fields=(name;email;message)>}] |
current_app | 'core' |
kwargs | {} |
reverse | <function reverse at 0x7f4a52fa98c0> |
self | <django.template.defaulttags.URLNode object at 0x7f4a49c98990> |
url | '' |
view_name | 'core:home' |
/home/serverchan/django-ecommerce-master/venv2/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 |
---|---|
app_list | ['core'] |
args | [] |
current_app | 'core' |
current_ns | 'core' |
current_path | [] |
extra | '' |
kwargs | {} |
ns | 'core' |
ns_converters | {} |
ns_pattern | '' |
parts | ['home', 'core'] |
path | [] |
prefix | '/' |
resolved_path | ['core'] |
resolver | <URLResolver <module 'core.urls' from '/home/serverchan/django-ecommerce-master/core/urls.py'> (core:core) ''> |
urlconf | 'royecommerce.urls' |
view | 'home' |
viewname | 'core:home' |
/home/serverchan/django-ecommerce-master/venv2/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 | '/' |
arg_msg | 'no arguments' |
args | () |
converters | {'company': <django.urls.converters.StringConverter object at 0x7f4a52a84b10>} |
defaults | {} |
kwargs | {} |
lookup_view | 'home' |
lookup_view_s | 'home' |
m | None |
msg | ("Reverse for 'home' with no arguments not found. 1 pattern(s) tried: " "['(?P<company>[^/]+)/home/$']") |
n | None |
params | ['company'] |
pattern | '(?P<company>[^/]+)/home/$' |
patterns | ['(?P<company>[^/]+)/home/$'] |
possibilities | [([('%(company)s/home/', ['company'])], '(?P<company>[^/]+)/home/$', {}, {'company': <django.urls.converters.StringConverter object at 0x7f4a52a84b10>})] |
possibility | [('%(company)s/home/', ['company'])] |
result | '%(company)s/home/' |
self | <URLResolver <module 'core.urls' from '/home/serverchan/django-ecommerce-master/core/urls.py'> (core:core) ''> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
CONTEXT_PREFIX | '' |
CSRF_COOKIE | 'VxrnwgnfP7xk2IrEmCQVnAFUylNto56EJAkVbSVg3M2H4beyvywO2hjMFi2oPupp' |
CSRF_COOKIE_USED | True |
DOCUMENT_ROOT | '/var/www/html' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.royplazastore.com' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/contact/' |
PATH_TRANSLATED | '/home/serverchan/django-ecommerce-master/royecommerce/wsgi.py/contact/' |
QUERY_STRING | '' |
REMOTE_ADDR | '44.213.80.174' |
REMOTE_PORT | '52398' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/contact/' |
SCRIPT_FILENAME | '/home/serverchan/django-ecommerce-master/royecommerce/wsgi.py' |
SCRIPT_NAME | '' |
SERVER_ADDR | '139.162.47.47' |
SERVER_ADMIN | 'webmaster@localhost' |
SERVER_NAME | 'www.royplazastore.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | ('<address>Apache/2.4.41 (Ubuntu) Server at www.royplazastore.com Port ' '443</address>\n') |
SERVER_SOFTWARE | 'Apache/2.4.41 (Ubuntu)' |
SSL_TLS_SNI | 'www.royplazastore.com' |
apache.version | (2, 4, 34) |
mod_wsgi.application_group | 'www.royplazastore.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.connection_id | '+f+qpMFWYVw' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1710812790946670' |
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 | '/contact/' |
mod_wsgi.process_group | 'royecommerce_app' |
mod_wsgi.queue_start | '1710812790946382' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'MnmupMFWYVw' |
mod_wsgi.request_start | '1710812790946098' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1710812790946867' |
mod_wsgi.thread_id | 2 |
mod_wsgi.thread_requests | 177 |
mod_wsgi.total_requests | 502 |
mod_wsgi.version | (4, 6, 5) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f4a4a03a960> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
royecommerce.settings.development
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATION_METHOD | 'username_email' |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_EMAIL_VERIFICATION | 'optional' |
ACCOUNT_FORMS | {'signup': 'core.forms.UpdatedSignUpForm'} |
ACCOUNT_UNIQUE_EMAIL | True |
ACCOUNT_USERNAME_REQUIRED | False |
ADMINS | [] |
ALLOWED_HOSTS | ['www.royplazastore.com', 'royplazastore.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/serverchan/django-ecommerce-master' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COUNTRIES_FIRST | ['PH'] |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
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': 'royplazastore', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'admin'}} |
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 | 'MS_2HqpyM@royplazastore.com' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.mailersend.net' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'MS_2HqpyM@royplazastore.com' |
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' |
GOOGLE_ANALYTICS_GTAG_PROPERTY_ID | 'UA-175789833-1' |
GOOGLE_ANALYTICS_JS_PROPERTY_ID | 'UA-175789833-1' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['core.apps.MyAdminConfig', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'maintenance_mode', 'analytical', 'django.contrib.sites', 'bootstrap_modal_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'crispy_forms', 'django_filters', 'django_countries', 'notifications', 'widget_tweaks', 'tempus_dominus', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.google', 'ajax_select', 'core'] |
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 | '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 | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MAINTENANCE_MODE | None |
MAINTENANCE_MODE_GET_CLIENT_IP_ADDRESS | None |
MAINTENANCE_MODE_GET_TEMPLATE_CONTEXT | None |
MAINTENANCE_MODE_IGNORE_ADMIN_SITE | None |
MAINTENANCE_MODE_IGNORE_ANONYMOUS_USER | False |
MAINTENANCE_MODE_IGNORE_AUTHENTICATED_USER | False |
MAINTENANCE_MODE_IGNORE_IP_ADDRESSES | None |
MAINTENANCE_MODE_IGNORE_STAFF | False |
MAINTENANCE_MODE_IGNORE_SUPERUSER | False |
MAINTENANCE_MODE_IGNORE_TESTS | False |
MAINTENANCE_MODE_IGNORE_URLS | None |
MAINTENANCE_MODE_REDIRECT_URL | None |
MAINTENANCE_MODE_RETRY_AFTER | 3600 |
MAINTENANCE_MODE_STATE_BACKEND | 'maintenance_mode.backends.LocalFileBackend' |
MAINTENANCE_MODE_STATE_FILE_NAME | 'maintenance_mode_state.txt' |
MAINTENANCE_MODE_STATE_FILE_PATH | '/home/serverchan/django-ecommerce-master/royecommerce/settings/maintenance_mode_state.txt' |
MAINTENANCE_MODE_STATUS_CODE | 503 |
MAINTENANCE_MODE_TEMPLATE | '503.html' |
MANAGERS | [] |
MEDIA_ROOT | '/home/serverchan/django-ecommerce-master/media_root' |
MEDIA_URL | '/media/' |
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', 'debug_toolbar.middleware.DebugToolbarMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NOTIFICATIONS_NOTIFICATION_MODEL | 'notifications.Notification' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'royecommerce.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 | 'royecommerce.settings.development' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 3 |
STATICFILES_DIRS | ['/home/serverchan/django-ecommerce-master/static_in_env'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/serverchan/django-ecommerce-master/static_root' |
STATIC_URL | '/static/' |
STRIPE_PUBLIC_KEY | '********************' |
STRIPE_SECRET_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/serverchan/django-ecommerce-master/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 | 'Asia/Manila' |
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 | 'royecommerce.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.