could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Request Method: | GET |
---|---|
Request URL: | http://pickpaybd.com/product-category/men-collection/ |
Django Version: | 2.0.13 |
Exception Type: | OperationalError |
Exception Value: | could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
Exception Location: | /var/www/demo_website/pickpaybd_com/.venv/lib64/python3.6/site-packages/psycopg2/__init__.py in connect, line 130 |
Python Executable: | /var/www/demo_website/pickpaybd_com/.venv/bin/python |
Python Version: | 3.6.8 |
Python Path: | ['/var/www/demo_website/pickpaybd_com', '/var/www/demo_website/pickpaybd_com/.venv/bin', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/var/www/demo_website/pickpaybd_com/.venv/lib64/python3.6/site-packages', '/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages', '/var/www/demo_website/pickpaybd_com/.venv/src/djangohyper', '/var/www/demo_website/pickpaybd_com/.venv/src/dit-email-addon'] |
Server time: | Fri, 29 Mar 2024 10:02:10 +0000 |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in ensure_connection
"Connection '%s' cannot set TIME_ZONE because its engine "
"handles time zones conversions natively." % self.alias)
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict['CONN_MAX_AGE']
self.close_at = None if max_age is None else time.time() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)...
self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
Variable | Value |
---|---|
conn_params | {'database': 'pickpaybd_com', 'host': 'localhost', 'password': 'N#$12&*Div%IT', 'port': '5432', 'user': 'postgres'} |
max_age | 0 |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/postgresql/base.py
in get_new_connection
if settings_dict['HOST']:
conn_params['host'] = settings_dict['HOST']
if settings_dict['PORT']:
conn_params['port'] = settings_dict['PORT']
return conn_params
def get_new_connection(self, conn_params):
connection = Database.connect(**conn_params)...
# self.isolation_level must be set:
# - after connecting to the database in order to obtain the database's
# default when no value is explicitly specified in options.
# - before calling _set_autocommit() because if autocommit is on, that
# will set connection.isolation_level to ISOLATION_LEVEL_AUTOCOMMIT.
Variable | Value |
---|---|
conn_params | {'database': 'pickpaybd_com', 'host': 'localhost', 'password': 'N#$12&*Div%IT', 'port': '5432', 'user': 'postgres'} |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib64/python3.6/site-packages/psycopg2/__init__.py
in connect
if 'async_' in kwargs:
kwasync['async_'] = kwargs.pop('async_')
if dsn is None and not kwargs:
raise TypeError('missing dsn and no parameters')
dsn = _ext.make_dsn(dsn, **kwargs)
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)...
if cursor_factory is not None:
conn.cursor_factory = cursor_factory
return conn
Variable | Value |
---|---|
connection_factory | None |
cursor_factory | None |
dsn | ('user=postgres password=N#$12&*Div%IT host=localhost port=5432 ' 'dbname=pickpaybd_com') |
kwargs | {'database': 'pickpaybd_com', 'host': 'localhost', 'password': 'N#$12&*Div%IT', 'port': '5432', 'user': 'postgres'} |
kwasync | {} |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/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 | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (::1) and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f14b3bb9a58>> |
request | <WSGIRequest: GET '/product-category/men-collection/'> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
if hasattr(request, 'urlconf'):
urlconf = request.urlconf
set_urlconf(urlconf)
resolver = get_resolver(urlconf)
else:
resolver = get_resolver()
resolver_match = resolver.resolve(request.path_info)...
callback, callback_args, callback_kwargs = resolver_match
request.resolver_match = resolver_match
# Apply view middleware
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
Variable | Value |
---|---|
request | <WSGIRequest: GET '/product-category/men-collection/'> |
resolver | <URLResolver 'ecommerce.urls' (None:None) '^/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f14b3bb9a58> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/urls/resolvers.py
in resolve
def resolve(self, path):
path = str(path) # path may be a reverse_lazy object
tried = []
match = self.pattern.match(path)
if match:
new_path, args, kwargs = match
for pattern in self.url_patterns:...
try:
sub_match = pattern.resolve(new_path)
except Resolver404 as e:
sub_tried = e.args[0].get('tried')
if sub_tried is not None:
tried.extend([pattern] + t for t in sub_tried)
Variable | Value |
---|---|
args | () |
kwargs | {} |
match | ('product-category/men-collection/', (), {}) |
new_path | 'product-category/men-collection/' |
path | '/product-category/men-collection/' |
self | <URLResolver 'ecommerce.urls' (None:None) '^/'> |
tried | [] |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/utils/functional.py
in __get__
"""
Call the function and put the return value in instance.__dict__ so that
subsequent attribute access on the instance returns the cached value
instead of calling cached_property.__get__().
"""
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)...
return res
class Promise:
"""
Base class for the proxy class created in the closure of the lazy function.
Variable | Value |
---|---|
cls | <class 'django.urls.resolvers.URLResolver'> |
instance | <URLResolver 'ecommerce.urls' (None:None) '^/'> |
self | <django.utils.functional.cached_property object at 0x7f14b77b2128> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/urls/resolvers.py
in url_patterns
return import_module(self.urlconf_name)
else:
return self.urlconf_name
@cached_property
def url_patterns(self):
# urlconf_module might be a valid set of patterns, so we default to it
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)...
try:
iter(patterns)
except TypeError:
msg = (
"The included URLconf '{name}' does not appear to have any "
"patterns in it. If you see valid patterns in the file then "
Variable | Value |
---|---|
self | <URLResolver 'ecommerce.urls' (None:None) '^/'> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/utils/functional.py
in __get__
"""
Call the function and put the return value in instance.__dict__ so that
subsequent attribute access on the instance returns the cached value
instead of calling cached_property.__get__().
"""
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)...
return res
class Promise:
"""
Base class for the proxy class created in the closure of the lazy function.
Variable | Value |
---|---|
cls | <class 'django.urls.resolvers.URLResolver'> |
instance | <URLResolver 'ecommerce.urls' (None:None) '^/'> |
self | <django.utils.functional.cached_property object at 0x7f14b77b20f0> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/urls/resolvers.py
in urlconf_module
tried.append([pattern])
raise Resolver404({'tried': tried, 'path': new_path})
raise Resolver404({'path': path})
@cached_property
def urlconf_module(self):
if isinstance(self.urlconf_name, str):
return import_module(self.urlconf_name)...
else:
return self.urlconf_name
@cached_property
def url_patterns(self):
# urlconf_module might be a valid set of patterns, so we default to it
Variable | Value |
---|---|
self | <URLResolver 'ecommerce.urls' (None:None) '^/'> |
/usr/lib64/python3.6/importlib/__init__.py
in import_module
msg = ("the 'package' argument is required to perform a relative "
"import for {!r}")
raise TypeError(msg.format(name))
for character in name:
if character != '.':
break
level += 1
return _bootstrap._gcd_import(name[level:], package, level)...
_RELOADING = {}
def reload(module):
Variable | Value |
---|---|
level | 0 |
name | 'ecommerce.urls' |
package | None |
<frozen importlib._bootstrap>
in _gcd_import
<source code not available>...
Variable | Value |
---|---|
level | 0 |
name | 'ecommerce.urls' |
package | None |
<frozen importlib._bootstrap>
in _find_and_load
<source code not available>...
Variable | Value |
---|---|
import_ | <function _gcd_import at 0x7f14cdf19e18> |
module | <object object at 0x7f14cdf1f030> |
name | 'ecommerce.urls' |
<frozen importlib._bootstrap>
in _find_and_load_unlocked
<source code not available>...
Variable | Value |
---|---|
import_ | <function _gcd_import at 0x7f14cdf19e18> |
name | 'ecommerce.urls' |
parent | 'ecommerce' |
parent_module | <module 'ecommerce' from '/var/www/demo_website/pickpaybd_com/ecommerce/__init__.py'> |
path | ['/var/www/demo_website/pickpaybd_com/ecommerce'] |
spec | ModuleSpec(name='ecommerce.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b15439e8>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/urls.py') |
<frozen importlib._bootstrap>
in _load_unlocked
<source code not available>...
Variable | Value |
---|---|
module | <module 'ecommerce.urls' from '/var/www/demo_website/pickpaybd_com/ecommerce/urls.py'> |
spec | ModuleSpec(name='ecommerce.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b15439e8>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/urls.py') |
<frozen importlib._bootstrap_external>
in exec_module
<source code not available>...
Variable | Value |
---|---|
code | <code object <module> at 0x7f14b38a84b0, file "/var/www/demo_website/pickpaybd_com/ecommerce/urls.py", line 15> |
module | <module 'ecommerce.urls' from '/var/www/demo_website/pickpaybd_com/ecommerce/urls.py'> |
self | <_frozen_importlib_external.SourceFileLoader object at 0x7f14b15439e8> |
<frozen importlib._bootstrap>
in _call_with_frames_removed
<source code not available>...
Variable | Value |
---|---|
args | (<code object <module> at 0x7f14b38a84b0, file "/var/www/demo_website/pickpaybd_com/ecommerce/urls.py", line 15>, {'CategoryProductsView': <class 'ecommerce.core.api.views.CategoryProductsView'>, 'CustomFormDataSubmit': <class 'ecommerce.core.views.CustomFormDataSubmit'>, '__builtins__': {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecode... <trimmed 12167 bytes string> |
f | <built-in function exec> |
kwds | {} |
/var/www/demo_website/pickpaybd_com/ecommerce/urls.py
in <module>
from ecommerce.core import views as core_views
from ecommerce.core.api.views import CategoryProductsView
from ecommerce.core.views import CustomFormDataSubmit
router = routers.DefaultRouter()
urlpatterns = [
path('invoice/',include('ecommerce.invoice.urls')),...
path('i18n/', include('django.conf.urls.i18n')),
path('hyperEditor/', include('djangohyper.urls')),
path('api/', api.urls),
path('admin/', admin.site.urls),
path('autocomplete/', core_views.autocomplete),
path('', application.urls),
Variable | Value |
---|---|
CategoryProductsView | <class 'ecommerce.core.api.views.CategoryProductsView'> |
CustomFormDataSubmit | <class 'ecommerce.core.views.CustomFormDataSubmit'> |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2018 Python Software Foundat... <trimmed 6536 bytes string> |
__cached__ | '/var/www/demo_website/pickpaybd_com/ecommerce/__pycache__/urls.cpython-36.pyc' |
__doc__ | ('ecommerce URL Configuration\n' '\n' 'The `urlpatterns` list routes URLs to views. For more information please ' 'see:\n' ' https://docs.djangoproject.com/en/2.1/topics/http/urls/\n' 'Examples:\n' 'Function views\n' ' 1. Add an import: from my_app import views\n' " 2. Add a URL to urlpatterns: path('', views.home, name='home')\n" 'Class-based views\n' ' 1. Add an import: from other_app.views import Home\n' " 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')\n" 'Including another URLconf\n' ' 1. Import the include() function: from django.urls import include, path\n' " 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))\n") |
__file__ | '/var/www/demo_website/pickpaybd_com/ecommerce/urls.py' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7f14b15439e8> |
__name__ | 'ecommerce.urls' |
__package__ | 'ecommerce' |
__spec__ | ModuleSpec(name='ecommerce.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b15439e8>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/urls.py') |
admin | <module 'django.contrib.admin' from '/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/contrib/admin/__init__.py'> |
api | <oscarapi.app.RESTApiApplication object at 0x7f14b3566b38> |
application | <oscar.app.Shop object at 0x7f14b355ec88> |
core_views | <module 'ecommerce.core.views' from '/var/www/demo_website/pickpaybd_com/ecommerce/core/views.py'> |
include | <function include at 0x7f14b77bd378> |
migrate | '0' |
os | <module 'os' from '/usr/lib64/python3.6/os.py'> |
path | functools.partial(<function _path at 0x7f14b77bd400>, Pattern=<class 'django.urls.resolvers.RoutePattern'>) |
router | <rest_framework.routers.DefaultRouter object at 0x7f14b1543198> |
routers | <module 'rest_framework.routers' from '/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/rest_framework/routers.py'> |
settings | <LazySettings "ecommerce.settings"> |
static | <function static at 0x7f14b3852378> |
views | <module 'ecommerce.catalogue.views' from '/var/www/demo_website/pickpaybd_com/ecommerce/catalogue/views.py'> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/urls/conf.py
in include
'provide the namespace argument to include() instead.' % len(arg)
)
else:
# No namespace hint - use manually provided namespace.
urlconf_module = arg
if isinstance(urlconf_module, str):
urlconf_module = import_module(urlconf_module)...
patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
app_name = getattr(urlconf_module, 'app_name', app_name)
if namespace and not app_name:
raise ImproperlyConfigured(
'Specifying a namespace in include() without providing an app_name '
'is not supported. Set the app_name attribute in the included '
Variable | Value |
---|---|
app_name | None |
arg | 'ecommerce.invoice.urls' |
namespace | None |
urlconf_module | 'ecommerce.invoice.urls' |
/usr/lib64/python3.6/importlib/__init__.py
in import_module
msg = ("the 'package' argument is required to perform a relative "
"import for {!r}")
raise TypeError(msg.format(name))
for character in name:
if character != '.':
break
level += 1
return _bootstrap._gcd_import(name[level:], package, level)...
_RELOADING = {}
def reload(module):
Variable | Value |
---|---|
level | 0 |
name | 'ecommerce.invoice.urls' |
package | None |
<frozen importlib._bootstrap>
in _gcd_import
<source code not available>...
Variable | Value |
---|---|
level | 0 |
name | 'ecommerce.invoice.urls' |
package | None |
<frozen importlib._bootstrap>
in _find_and_load
<source code not available>...
Variable | Value |
---|---|
import_ | <function _gcd_import at 0x7f14cdf19e18> |
module | <object object at 0x7f14cdf1f030> |
name | 'ecommerce.invoice.urls' |
<frozen importlib._bootstrap>
in _find_and_load_unlocked
<source code not available>...
Variable | Value |
---|---|
import_ | <function _gcd_import at 0x7f14cdf19e18> |
name | 'ecommerce.invoice.urls' |
parent | 'ecommerce.invoice' |
parent_module | <module 'ecommerce.invoice' from '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/__init__.py'> |
path | ['/var/www/demo_website/pickpaybd_com/ecommerce/invoice'] |
spec | ModuleSpec(name='ecommerce.invoice.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b1543f98>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py') |
<frozen importlib._bootstrap>
in _load_unlocked
<source code not available>...
Variable | Value |
---|---|
module | <module 'ecommerce.invoice.urls' from '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py'> |
spec | ModuleSpec(name='ecommerce.invoice.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b1543f98>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py') |
<frozen importlib._bootstrap_external>
in exec_module
<source code not available>...
Variable | Value |
---|---|
code | <code object <module> at 0x7f14b1c048a0, file "/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py", line 1> |
module | <module 'ecommerce.invoice.urls' from '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py'> |
self | <_frozen_importlib_external.SourceFileLoader object at 0x7f14b1543f98> |
<frozen importlib._bootstrap>
in _call_with_frames_removed
<source code not available>...
Variable | Value |
---|---|
args | (<code object <module> at 0x7f14b1c048a0, file "/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py", line 1>, {'__builtins__': {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'Uni... <trimmed 10160 bytes string> |
f | <built-in function exec> |
kwds | {} |
/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py
in <module>
from django.urls import path
from . import views...
urlpatterns = [
path('',views.index,name="Index"),
path('pdf_view/', views.ViewPDF.as_view(), name="pdf_view"),
path('pdf_download/', views.DownloadPDF.as_view(), name="pdf_download"),
]
Variable | Value |
---|---|
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2018 Python Software Foundat... <trimmed 6536 bytes string> |
__cached__ | '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/__pycache__/urls.cpython-36.pyc' |
__doc__ | None |
__file__ | '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7f14b1543f98> |
__name__ | 'ecommerce.invoice.urls' |
__package__ | 'ecommerce.invoice' |
__spec__ | ModuleSpec(name='ecommerce.invoice.urls', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b1543f98>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/invoice/urls.py') |
path | functools.partial(<function _path at 0x7f14b77bd400>, Pattern=<class 'django.urls.resolvers.RoutePattern'>) |
/var/www/demo_website/pickpaybd_com/ecommerce/invoice/views.py
in <module>
"total_price":"0.00",
"orderNo":"",
}
shipCost={
"shippingCost":"0.00",
}
bill=ShippingAddress.objects.all()
if bill:...
bill = list(reversed(bill))
for items in bill:
if items.title:
customerInfo["title"]=items.title
if items.first_name:
customerInfo["first_name"]=items.first_name
Variable | Value |
---|---|
BillingAddress | <class 'oscar.apps.order.models.BillingAddress'> |
BytesIO | <class '_io.BytesIO'> |
Country | <class 'oscar.apps.address.models.Country'> |
HttpResponse | <class 'django.http.response.HttpResponse'> |
Line | <class 'oscar.apps.order.models.Line'> |
LinePrice | <class 'oscar.apps.order.models.LinePrice'> |
Order | <class 'oscar.apps.order.models.Order'> |
OrderDiscount | <class 'oscar.apps.order.models.OrderDiscount'> |
OrderNote | <class 'oscar.apps.order.models.OrderNote'> |
ShippingAddress | <class 'oscar.apps.order.models.ShippingAddress'> |
View | <class 'django.views.generic.base.View'> |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2018 Python Software Foundat... <trimmed 6536 bytes string> |
__cached__ | '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/__pycache__/views.cpython-36.pyc' |
__doc__ | None |
__file__ | '/var/www/demo_website/pickpaybd_com/ecommerce/invoice/views.py' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7f14b17ae390> |
__name__ | 'ecommerce.invoice.views' |
__package__ | 'ecommerce.invoice' |
__spec__ | ModuleSpec(name='ecommerce.invoice.views', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f14b17ae390>, origin='/var/www/demo_website/pickpaybd_com/ecommerce/invoice/views.py') |
bill | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
customerInfo | {'country_id': '', 'first_name': '', 'last_name': '', 'line1': '', 'line2': '', 'line3': '', 'line4': '', 'postcode': '', 'state': '', 'title': ''} |
data | {} |
get_template | <function get_template at 0x7f14b9863620> |
orderDiscount | {'amount': '0.00', 'date_created': '', 'discounted_total': '0.00', 'orderNo': '', 'total_price': '0.00'} |
pisa | <module 'xhtml2pdf.pisa' from '/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/xhtml2pdf/pisa.py'> |
render | <function render at 0x7f14b4730158> |
render_to_pdf | <function render_to_pdf at 0x7f14b1bfa1e0> |
shipCost | {'shippingCost': '0.00'} |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/models/query.py
in __bool__
3. self.iterator()
- Responsible for turning the rows into model objects.
"""
self._fetch_all()
return iter(self._result_cache)
def __bool__(self):
self._fetch_all()...
return bool(self._result_cache)
def __getitem__(self, k):
"""Retrieve an item or slice from the set of results."""
if not isinstance(k, (int, slice)):
raise TypeError
Variable | Value |
---|---|
self | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/models/query.py
in _fetch_all
c._known_related_objects = self._known_related_objects
c._iterable_class = self._iterable_class
c._fields = self._fields
return c
def _fetch_all(self):
if self._result_cache is None:
self._result_cache = list(self._iterable_class(self))...
if self._prefetch_related_lookups and not self._prefetch_done:
self._prefetch_related_objects()
def _next_is_sticky(self):
"""
Indicate that the next filter call and the one following that should
Variable | Value |
---|---|
self | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/models/query.py
in __iter__
def __iter__(self):
queryset = self.queryset
db = queryset.db
compiler = queryset.query.get_compiler(using=db)
# Execute the query. This will also fill compiler.select, klass_info,
# and annotations.
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)...
select, klass_info, annotation_col_map = (compiler.select, compiler.klass_info,
compiler.annotation_col_map)
model_cls = klass_info['model']
select_fields = klass_info['select_fields']
model_fields_start, model_fields_end = select_fields[0], select_fields[-1] + 1
init_list = [f[0].target.attname
Variable | Value |
---|---|
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f14b17ae2e8> |
db | 'default' |
queryset | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
self | <django.db.models.query.ModelIterable object at 0x7f14b17ae1d0> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/models/sql/compiler.py
in execute_sql
if result_type == MULTI:
return iter([])
else:
return
if chunked_fetch:
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()...
try:
cursor.execute(sql, params)
except Exception:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
raise
Variable | Value |
---|---|
chunk_size | 100 |
chunked_fetch | False |
params | () |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f14b17ae2e8> |
sql | ('SELECT "order_shippingaddress"."id", "order_shippingaddress"."title", ' '"order_shippingaddress"."first_name", "order_shippingaddress"."last_name", ' '"order_shippingaddress"."line1", "order_shippingaddress"."line2", ' '"order_shippingaddress"."line3", "order_shippingaddress"."line4", ' '"order_shippingaddress"."state", "order_shippingaddress"."postcode", ' '"order_shippingaddress"."country_id", "order_shippingaddress"."search_text", ' '"order_shippingaddress"."phone_number", "order_shippingaddress"."notes" FROM ' '"order_shippingaddress"') |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in cursor
with self.wrap_database_errors:
return self.connection.close()
# ##### Generic wrappers for PEP-249 connection methods #####
def cursor(self):
"""Create a cursor, opening a connection if necessary."""
return self._cursor()...
def commit(self):
"""Commit a transaction and reset the dirty flag."""
self.validate_thread_sharing()
self.validate_no_atomic_block()
self._commit()
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in _cursor
if self.queries_logged:
wrapped_cursor = self.make_debug_cursor(cursor)
else:
wrapped_cursor = self.make_cursor(cursor)
return wrapped_cursor
def _cursor(self, name=None):
self.ensure_connection()...
with self.wrap_database_errors:
return self._prepare_cursor(self.create_cursor(name))
def _commit(self):
if self.connection is not None:
with self.wrap_database_errors:
Variable | Value |
---|---|
name | None |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in ensure_connection
"Connection '%s' cannot set TIME_ZONE because its engine "
"handles time zones conversions natively." % self.alias)
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/utils.py
in __exit__
db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value...
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
Variable | Value |
---|---|
db_exc_type | <class 'psycopg2.OperationalError'> |
dj_exc_type | <class 'django.db.utils.OperationalError'> |
dj_exc_value | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (::1) and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
exc_type | <class 'psycopg2.OperationalError'> |
exc_value | OperationalError('could not connect to server: Connection refused\n\tIs the server running on host "localhost" (::1) and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?\n',) |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f14b1c02e48> |
traceback | <traceback object at 0x7f14b18ca308> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in ensure_connection
"Connection '%s' cannot set TIME_ZONE because its engine "
"handles time zones conversions natively." % self.alias)
def ensure_connection(self):
"""Guarantee that a connection to the database is established."""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
# ##### Backend-specific wrappers for PEP-249 connection methods #####
def _prepare_cursor(self, cursor):
"""
Validate the connection is usable and perform database cursor wrapping.
Variable | Value |
---|---|
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/base/base.py
in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict['CONN_MAX_AGE']
self.close_at = None if max_age is None else time.time() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)...
self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
self.run_on_commit = []
Variable | Value |
---|---|
conn_params | {'database': 'pickpaybd_com', 'host': 'localhost', 'password': 'N#$12&*Div%IT', 'port': '5432', 'user': 'postgres'} |
max_age | 0 |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/django/db/backends/postgresql/base.py
in get_new_connection
if settings_dict['HOST']:
conn_params['host'] = settings_dict['HOST']
if settings_dict['PORT']:
conn_params['port'] = settings_dict['PORT']
return conn_params
def get_new_connection(self, conn_params):
connection = Database.connect(**conn_params)...
# self.isolation_level must be set:
# - after connecting to the database in order to obtain the database's
# default when no value is explicitly specified in options.
# - before calling _set_autocommit() because if autocommit is on, that
# will set connection.isolation_level to ISOLATION_LEVEL_AUTOCOMMIT.
Variable | Value |
---|---|
conn_params | {'database': 'pickpaybd_com', 'host': 'localhost', 'password': 'N#$12&*Div%IT', 'port': '5432', 'user': 'postgres'} |
self | <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7f14b487ab38> |
/var/www/demo_website/pickpaybd_com/.venv/lib64/python3.6/site-packages/psycopg2/__init__.py
in connect
if 'async_' in kwargs:
kwasync['async_'] = kwargs.pop('async_')
if dsn is None and not kwargs:
raise TypeError('missing dsn and no parameters')
dsn = _ext.make_dsn(dsn, **kwargs)
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)...
if cursor_factory is not None:
conn.cursor_factory = cursor_factory
return conn
Variable | Value |
---|---|
connection_factory | None |
cursor_factory | None |
dsn | ('user=postgres password=N#$12&*Div%IT host=localhost port=5432 ' 'dbname=pickpaybd_com') |
kwargs | {'database': 'pickpaybd_com', 'host': 'localhost', 'password': 'N#$12&*Div%IT', 'port': '5432', 'user': 'postgres'} |
kwasync | {} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'pickpaybd.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.204.99.5' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '44.204.99.5' |
PATH_INFO | '/product-category/men-collection/' |
QUERY_STRING | '' |
RAW_URI | '/product-category/men-collection/' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '58090' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '127.0.0.1' |
SERVER_PORT | '9987' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 9987), raddr=('127.0.0.1', 58090)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f14b15164a8> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f14b1516358> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
ecommerce.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATION_METHOD | 'email' |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_USERNAME_REQUIRED | False |
ACCOUNT_USER_MODEL_USERNAME_FIELD | None |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('allauth.account.auth_backends.AuthenticationBackend', 'oscar.apps.customer.auth_backends.EmailBackend', 'django.contrib.auth.backends.ModelBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'core.User' |
BASE_DIR | '/var/www/demo_website/pickpaybd_com' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CONSTANCE_ADDITIONAL_FIELDS | {'char_field': [<class 'django.forms.fields.CharField'>, {}], 'hyper_field': [<class 'djangohyper.fields.HyperFormField'>, {}], 'image_field': [<class 'django.forms.fields.ImageField'>, {}], 'theme_choice_field': [<class 'django.forms.fields.ChoiceField'>, {'choices': (('default', 'Default'), ('theme_1', 'Electronics Store'), ('theme_2', 'Grocery Store'), ('theme_3', 'Motor Vehicle'), ('theme_4', 'Omega Tech'), ('theme_6', 'Box layout'), ('theme_7', 'Jute Multi Vendor')), 'widget': <django.forms.widgets.Select object at 0x7f14b3c1f0f0>}]} |
CONSTANCE_BACKEND | 'constance.backends.database.DatabaseBackend' |
CONSTANCE_CONFIG | {'FREE_SHIPPING_THRESHOLD': (0.0, 'Free Shipping Threshold'), 'STANDARD_SHIPPING_CHARGE': (0.0, 'Standard Shipping Charge'), 'favicon': ('', 'Favicon', 'image_field'), 'footer_content': ('', 'Footer Content', 'hyper_field'), 'google_analytics_id': ('', 'Google Analytics'), 'gtags_container_id': ('', 'Google Tag Manager'), 'header_content': ('', 'Header Content', 'hyper_field'), 'logo': ('', 'Logo', 'image_field'), 'main_menu': ('', 'Main Menu', 'hyper_field'), 'shop_hotline': ('', 'Shop Hotline'), 'shop_name': ('E-Commerce', 'E-Commerce Brand name'), 'shop_tagline': ('', 'Tagline / Slogan'), 'theme': ('default', 'Select theme', 'theme_choice_field'), 'topbar_menu': ('', 'Topbar Menu', 'hyper_field')} |
CONSTANCE_IGNORE_ADMIN_VERSION_CHECK | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'NAME': 'pickpaybd_com', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
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 | 'in-v3.mailjet.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'dbcd9493d3a42c21e3f8cf8909fa5575' |
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 |
FILER_IMAGE_MODEL | 'filer.Image' |
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 |
FILTERING_STRATEGY_AND | True |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/var/www/demo_website/pickpaybd_com/whoosh_index'}} |
HYPER_EDITOR_BLOCK_CONFIG | {'ad_block': {'styles': [{'id': 'default', 'name': 'Default'}]}, 'category': {'styles': [{'id': 'default', 'name': 'Default'}, {'id': 'feature-category-block', 'name': 'Feature category block'}, {'id': 'feature-category-banner', 'name': 'Feature category with banner'}]}, 'contentbox': {'styles': [{'id': 'default', 'name': 'Default'}, {'id': 'contentbox1', 'name': 'Contentbox support image and button'}, {'id': 'contentbox2', 'name': 'Contentbox support icon heading and ' 'downloadable link'}, {'id': 'contentbox3', 'name': 'solid action button'}, {'id': 'contentbox4', 'name': 'Contentbox with icon and details'}]}, 'manager': {'styles': [{'id': 'default', 'name': 'Default'}, {'id': 'managerV2', 'name': 'Product manager version-2'}, {'id': 'managerV3', 'name': 'Product manager without slider'}, {'id': 'managerV4', 'name': 'Full width product manager with slider'}]}, 'promotion': {'styles': [{'id': 'default', 'name': 'Default'}, {'id': 'promotion-block-two', 'name': 'Promotion block with feature images'}]}, 'slider': {'styles': [{'id': 'default', 'name': 'Default'}, {'id': 'hero-slider-1', 'name': 'Hero slider background image with text'}, {'id': 'customer_slider', 'name': 'Customer slider only image'}, {'id': 'client_slider', 'name': 'Customer/client slider image with name'}]}, 'top_category': {'styles': [{'id': 'default', 'name': 'Default'}, {'id': 'top-category-slider', 'name': 'Top category slider style'}]}} |
HYPER_IMAGE_API | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'widget_tweaks', 'django_filters', 'sekizai', 'allauth', 'allauth.account', 'dit_email_addon', 'ecommerce.core', 'djangohyper', 'ecommerce.flatpages', 'rest_framework', 'easy_thumbnails', 'filer', 'mptt', 'constance', 'constance.backends.database', 'ecommerce.core.api', 'oscar', 'oscar.apps.analytics', 'oscar.apps.checkout', 'oscar.apps.address', 'ecommerce.shipping', 'ecommerce.catalogue', 'oscar.apps.catalogue.reviews', 'oscar.apps.partner', 'oscar.apps.basket', 'oscar.apps.payment', 'ecommerce.offer', 'oscar.apps.order', 'ecommerce.customer', 'ecommerce.promotions', 'ecommerce.search', 'oscar.apps.voucher', 'oscar.apps.wishlists', 'ecommerce.dashboard', 'oscar.apps.dashboard.reports', 'oscar.apps.dashboard.users', 'oscar.apps.dashboard.orders', 'oscar.apps.dashboard.promotions', 'ecommerce.dashboard.catalogue', 'oscar.apps.dashboard.offers', 'oscar.apps.dashboard.partners', 'oscar.apps.dashboard.pages', 'oscar.apps.dashboard.ranges', 'oscar.apps.dashboard.reviews', 'ecommerce.dashboard.vouchers', 'oscar.apps.dashboard.communications', 'oscar.apps.dashboard.shipping', 'haystack', 'treebeard', 'sorl.thumbnail', 'django_tables2'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('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 | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/demo_website/pickpaybd_com/media' |
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', 'oscar.apps.basket.middleware.BasketMiddleware', 'ecommerce.flatpages.middleware.FlatpageFallbackMiddleware', 'ecommerce.core.middleware.FakeBasketMiddleware', 'ecommerce.core.middleware.InitializeThreadLocalMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OSCARAPI_BLOCK_ADMIN_API_ACCESS | '********************' |
OSCAR_ACCOUNTS_REDIRECT_URL | 'customer:profile-view' |
OSCAR_ADDRESSES_PER_PAGE | 20 |
OSCAR_ALLOW_ANON_CHECKOUT | False |
OSCAR_ALLOW_ANON_REVIEWS | True |
OSCAR_BASKET_COOKIE_LIFETIME | 604800 |
OSCAR_BASKET_COOKIE_OPEN | 'oscar_open_basket' |
OSCAR_BASKET_COOKIE_SECURE | False |
OSCAR_COOKIES_DELETE_ON_LOGOUT | ['oscar_recently_viewed_products'] |
OSCAR_CURRENCY_FORMAT | {'BDT': {'format': '¤#,##0.##', 'locale': 'bn_BD'}} |
OSCAR_DASHBOARD_DEFAULT_ACCESS_FUNCTION | 'oscar.apps.dashboard.nav.default_access_fn' |
OSCAR_DASHBOARD_ITEMS_PER_PAGE | 20 |
OSCAR_DASHBOARD_NAVIGATION | [{'icon': 'icon-th-list', 'label': 'Dashboard', 'url_name': 'dashboard:index'}, {'children': [{'label': 'Products', 'url_name': 'dashboard:catalogue-product-list'}, {'label': 'Product Types', 'url_name': 'dashboard:catalogue-class-list'}, {'label': 'Categories', 'url_name': 'dashboard:catalogue-category-list'}, {'label': 'Ranges', 'url_name': 'dashboard:range-list'}, {'label': 'Low stock alerts', 'url_name': 'dashboard:stock-alert-list'}], 'icon': 'icon-sitemap', 'label': 'Catalog'}, {'children': [{'label': 'Orders', 'url_name': 'dashboard:order-list'}, {'label': 'Statistics', 'url_name': 'dashboard:order-stats'}, {'label': 'Partners', 'url_name': 'dashboard:partner-list'}], 'icon': 'icon-shopping-cart', 'label': 'Fulfilment'}, {'children': [{'label': 'Customers', 'url_name': 'dashboard:users-index'}, {'label': 'Stock alert requests', 'url_name': 'dashboard:user-alert-list'}], 'icon': 'icon-group', 'label': 'Customers'}, {'children': [{'label': 'Offers', 'url_name': 'dashboard:offer-list'}, {'label': 'Coupons', 'url_name': 'dashboard:voucher-list'}, {'label': 'Voucher Sets', 'url_name': 'dashboard:voucher-set-list'}], 'icon': 'icon-bullhorn', 'label': 'Offers'}, {'children': [{'label': 'Pages', 'url_name': 'dashboard:page-list'}, {'label': 'Snippets', 'url_name': 'dashboard:list.snippet'}, {'label': 'File Manager', 'url_name': 'dashboard:extensions-browse'}, {'label': 'Email templates', 'url_name': 'dashboard:comms-list'}, {'label': 'Reviews', 'url_name': 'dashboard:reviews-list'}], 'icon': 'icon-folder-close', 'label': 'Content'}, {'icon': 'icon-bar-chart', 'label': 'Reports', 'url_name': 'dashboard:reports-index'}, {'icon': 'icon-bar-chart', 'label': 'Menus', 'url_name': 'dashboard:extensions-create-menu'}, {'icon': 'icon-bar-chart', 'label': 'Forms', 'url_name': 'dashboard:extensions-create-form'}] |
OSCAR_DEFAULT_CURRENCY | 'BDT' |
OSCAR_DELETE_IMAGE_FILES | True |
OSCAR_DYNAMIC_CLASS_LOADER | 'oscar.core.loading.default_class_loader' |
OSCAR_EAGER_ALERTS | True |
OSCAR_EMAILS_PER_PAGE | 20 |
OSCAR_FROM_EMAIL | 'oscar@example.com' |
OSCAR_HIDDEN_FEATURES | [] |
OSCAR_HOMEPAGE | Error in formatting: OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? |
OSCAR_IMAGE_FOLDER | 'images/products/%Y/%m/' |
OSCAR_INITIAL_LINE_STATUS | 'Pending' |
OSCAR_INITIAL_ORDER_STATUS | 'Pending' |
OSCAR_MAIN_TEMPLATE_DIR | '/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/oscar/templates/oscar' |
OSCAR_MAX_BASKET_QUANTITY_THRESHOLD | 10000 |
OSCAR_MISSING_IMAGE_URL | 'image_not_found.jpg' |
OSCAR_MODERATE_REVIEWS | False |
OSCAR_NOTIFICATIONS_PER_PAGE | 20 |
OSCAR_OFFERS_PER_PAGE | 20 |
OSCAR_ORDERS_PER_PAGE | 20 |
OSCAR_ORDER_STATUS_CASCADE | {'Being processed': 'In progress', 'Cancelled': 'Cancelled', 'Complete': 'Shipped', 'Pending': 'Pending'} |
OSCAR_ORDER_STATUS_PIPELINE | {'Being processed': ('Complete', 'Cancelled'), 'Cancelled': (), 'Complete': ('Being processed', 'Cancelled'), 'Pending': ('Being processed', 'Cancelled', 'Complete')} |
OSCAR_PRODUCTS_PER_PAGE | 20 |
OSCAR_PRODUCT_SEARCH_HANDLER | None |
OSCAR_PROMOTIONS_ENABLED | True |
OSCAR_PROMOTION_FOLDER | 'images/promotions/' |
OSCAR_PROMOTION_POSITIONS | (('page', 'Page'), ('right', 'Right-hand sidebar'), ('left', 'Left-hand sidebar')) |
OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME | 604800 |
OSCAR_RECENTLY_VIEWED_COOKIE_NAME | 'oscar_history' |
OSCAR_RECENTLY_VIEWED_COOKIE_SECURE | False |
OSCAR_RECENTLY_VIEWED_PRODUCTS | 20 |
OSCAR_REQUIRED_ADDRESS_FIELDS | ('first_name', 'last_name', 'line1', 'line4', 'postcode', 'country') |
OSCAR_REVIEWS_PER_PAGE | 20 |
OSCAR_SEARCH_FACETS | {'fields': {'product_class': {'field': 'product_class', 'name': 'Type'}, 'rating': {'field': 'rating', 'name': 'Rating'}}, 'queries': {'price_range': {'field': 'price', 'name': 'Price range', 'queries': [('0 to 20', '[0 TO 20]'), ('20 to 40', '[20 TO 40]'), ('40 to 60', '[40 TO 60]'), ('60+', '[60 TO *]')]}}} |
OSCAR_SEND_REGISTRATION_EMAIL | True |
OSCAR_SHOP_NAME | 'Rayhan Motors' |
OSCAR_SHOP_TAGLINE | '' |
OSCAR_SLUG_ALLOW_UNICODE | False |
OSCAR_SLUG_BLACKLIST | [] |
OSCAR_SLUG_FUNCTION | 'oscar.core.utils.default_slugifier' |
OSCAR_SLUG_MAP | {} |
OSCAR_STOCK_ALERTS_PER_PAGE | 20 |
OSCAR_UPLOAD_ROOT | '/tmp' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_DIR | '/var/www/demo_website/pickpaybd_com/ecommerce' |
ROOT_URLCONF | 'ecommerce.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'ecommerce.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 |
STATICFILES_DIRS | ('/var/www/demo_website/pickpaybd_com/ecommerce/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/demo_website/pickpaybd_com/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/demo_website/pickpaybd_com/ecommerce/templates', '/var/www/demo_website/pickpaybd_com/.venv/lib/python3.6/site-packages/oscar/templates/oscar'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.i18n', 'django.contrib.messages.context_processors.messages', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.promotions.context_processors.promotions', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.customer.notifications.context_processors.notifications', 'ecommerce.core.context_processors.metadata', 'constance.context_processors.config', 'sekizai.context_processors.sekizai'], 'loaders': (('ecommerce.core.loaders.ThemeLoader', '/var/www/demo_website/pickpaybd_com/ecommerce/templates/themes'), 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WHOOSH_INDEX_PATH | '/var/www/demo_website/pickpaybd_com/whoosh_index' |
WSGI_APPLICATION | 'ecommerce.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.