Reverse for 'bio' not found. 'bio' is not a valid view function or pattern name.
Request Method: | GET |
---|---|
Request URL: | https://nousonm.com/catalogue/category/marques/le-creuset_1032/?page=2 |
Django Version: | 3.1.3 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'bio' not found. 'bio' is not a valid view function or pattern name. |
Exception Location: | /usr/local/lib/python3.7/dist-packages/django/urls/resolvers.py, line 685, in _reverse_with_prefix |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.7.3 |
Python Path: | ['/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages', '/var/www/html/website/'] |
Server time: | Thu, 28 Mar 2024 20:09:58 +0000 |
/var/www/html/website/NousOnAime/catalogue/views.py
, line 526, in get
return ctx
class ProductCategoryView(views.ProductCategoryView):
def get(self, request, *args, **kwargs):
try:
self.search_handler = self.get_search_handler(
self.request.GET, request.get_full_path(), [], product_class__name='Vins')…
except InvalidPage:
# Redirect to page one.
messages.error(request, _('The given page number was invalid.'))
return redirect('catalogue:bio')
return super().get(request, *args, **kwargs)
Variable | Value |
---|---|
__class__ | <class 'NousOnAime.catalogue.views.ProductCategoryView'> |
args | () |
kwargs | {'category_slug': 'marques/le-creuset', 'pk': '1032'} |
request | <WSGIRequest: GET '/catalogue/category/marques/le-creuset_1032/?page=2'> |
self | <NousOnAime.catalogue.views.ProductCategoryView object at 0x7f2c04514710> |
/usr/local/lib/python3.7/dist-packages/oscar/apps/catalogue/views.py
, line 196, in get_search_handler
# Categories are fetched by primary key to allow slug changes.
# If the slug has changed, issue a redirect.
expected_path = category.get_absolute_url()
if expected_path != quote(current_path):
return HttpResponsePermanentRedirect(expected_path)
def get_search_handler(self, *args, **kwargs):
return get_product_search_handler_class()(*args, **kwargs)…
def get_categories(self):
"""
Return a list of the current category and its ancestors
"""
return self.category.get_descendants_and_self()
Variable | Value |
---|---|
args | (<QueryDict: {'page': ['2']}>, '/catalogue/category/marques/le-creuset_1032/?page=2', []) |
kwargs | {'product_class__name': 'Vins'} |
self | <NousOnAime.catalogue.views.ProductCategoryView object at 0x7f2c04514710> |
/var/www/html/website/NousOnAime/catalogue/search_handlers.py
, line 47, in __init__
model_whitelist = [Product]
paginate_by = settings.OSCAR_PRODUCTS_PER_PAGE
def __init__(self, request_data, full_path, categories=None, **search):
self.categories = categories
self.search = search
super().__init__(request_data, full_path, **search)…
def set_search(self, **search):
self.search = search
def get_search_queryset(self):
print("SolrProductSearchHandler")
Variable | Value |
---|---|
__class__ | <class 'NousOnAime.catalogue.search_handlers.SolrProductSearchHandler'> |
categories | [] |
full_path | '/catalogue/category/marques/le-creuset_1032/?page=2' |
request_data | <QueryDict: {'page': ['2']}> |
search | {'product_class__name': 'Vins'} |
self | <NousOnAime.catalogue.search_handlers.SolrProductSearchHandler object at 0x7f2c045149e8> |
/var/www/html/website/NousOnAime/search/search_handlers.py
, line 57, in __init__
search_queryset = self.get_search_queryset()
self.search_form = self.get_search_form(
request_data, search_queryset)
self.results = self.get_search_results(self.search_form)
# If below raises an UnicodeDecodeError, you're running pysolr < 3.2
# with Solr 4.
self.paginator, self.page = self.paginate_queryset(
self.results, request_data)…
# Search related methods
def get_search_results(self, search_form):
"""
Perform the actual search using Haystack's search form. Returns
Variable | Value |
---|---|
full_path | '/catalogue/category/marques/le-creuset_1032/?page=2' |
request_data | <QueryDict: {'page': ['2']}> |
search | {'product_class__name': 'Vins'} |
search_queryset | <SearchQuerySet: query=<haystack.backends.solr_backend.SolrSearchQuery object at 0x7f2c04514ac8>, using=None> |
self | <NousOnAime.catalogue.search_handlers.SolrProductSearchHandler object at 0x7f2c045149e8> |
/var/www/html/website/NousOnAime/search/search_handlers.py
, line 113, in paginate_queryset
except ValueError:
if page == 'last':
page_number = paginator.num_pages
else:
raise InvalidPage(_(
"Page is not 'last', nor can it be converted to an int."))
# This can also raise an InvalidPage exception.
return paginator, paginator.page(page_number)…
def get_paginator(self, queryset):
"""
Return a paginator. Override this to set settings like orphans,
allow_empty, etc.
"""
Variable | Value |
---|---|
page | '2' |
page_kwarg | 'page' |
page_number | 2 |
paginator | <django.core.paginator.Paginator object at 0x7f2bfbf9d198> |
queryset | <SearchQuerySet: query=<haystack.backends.solr_backend.SolrSearchQuery object at 0x7f2c04514ac8>, using=None> |
request_data | <QueryDict: {'page': ['2']}> |
self | <NousOnAime.catalogue.search_handlers.SolrProductSearchHandler object at 0x7f2c045149e8> |
/usr/local/lib/python3.7/dist-packages/django/core/paginator.py
, line 73, in page
number = 1
except EmptyPage:
number = self.num_pages
return self.page(number)
def page(self, number):
"""Return a Page object for the given 1-based page number."""
number = self.validate_number(number)…
bottom = (number - 1) * self.per_page
top = bottom + self.per_page
if top + self.orphans >= self.count:
top = self.count
return self._get_page(self.object_list[bottom:top], number, self)
Variable | Value |
---|---|
number | 2 |
self | <django.core.paginator.Paginator object at 0x7f2bfbf9d198> |
/usr/local/lib/python3.7/dist-packages/django/core/paginator.py
, line 55, in validate_number
raise PageNotAnInteger(_('That page number is not an integer'))
if number < 1:
raise EmptyPage(_('That page number is less than 1'))
if number > self.num_pages:
if number == 1 and self.allow_empty_first_page:
pass
else:
raise EmptyPage(_('That page contains no results'))…
return number
def get_page(self, number):
"""
Return a valid page, even if the page argument isn't a number or isn't
in range.
Variable | Value |
---|---|
number | 2 |
self | <django.core.paginator.Paginator object at 0x7f2bfbf9d198> |
/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@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 'bio' not found. 'bio' is not a valid view function or pattern name.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f2c04eaf8d0>> |
request | <WSGIRequest: GET '/catalogue/category/marques/le-creuset_1032/?page=2'> |
/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py
, line 179, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function ProductCategoryView at 0x7f2c04d5b158> |
callback_args | () |
callback_kwargs | {'category_slug': 'marques/le-creuset', 'pk': '1032'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2c04eba6a0>> |
request | <WSGIRequest: GET '/catalogue/category/marques/le-creuset_1032/?page=2'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2c04eaf8d0> |
wrapped_callback | <function ProductCategoryView at 0x7f2c04d5b158> |
/usr/local/lib/python3.7/dist-packages/django/views/generic/base.py
, line 70, in view
self = cls(**initkwargs)
self.setup(request, *args, **kwargs)
if not hasattr(self, 'request'):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
args | () |
cls | <class 'NousOnAime.catalogue.views.ProductCategoryView'> |
initkwargs | {} |
kwargs | {'category_slug': 'marques/le-creuset', 'pk': '1032'} |
request | <WSGIRequest: GET '/catalogue/category/marques/le-creuset_1032/?page=2'> |
self | <NousOnAime.catalogue.views.ProductCategoryView object at 0x7f2c04514710> |
/usr/local/lib/python3.7/dist-packages/django/views/generic/base.py
, line 98, in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
'Method Not Allowed (%s): %s', request.method, request.path,
extra={'status_code': 405, 'request': request}
)
Variable | Value |
---|---|
args | () |
handler | <bound method ProductCategoryView.get of <NousOnAime.catalogue.views.ProductCategoryView object at 0x7f2c04514710>> |
kwargs | {'category_slug': 'marques/le-creuset', 'pk': '1032'} |
request | <WSGIRequest: GET '/catalogue/category/marques/le-creuset_1032/?page=2'> |
self | <NousOnAime.catalogue.views.ProductCategoryView object at 0x7f2c04514710> |
/var/www/html/website/NousOnAime/catalogue/views.py
, line 530, in get
def get(self, request, *args, **kwargs):
try:
self.search_handler = self.get_search_handler(
self.request.GET, request.get_full_path(), [], product_class__name='Vins')
except InvalidPage:
# Redirect to page one.
messages.error(request, _('The given page number was invalid.'))
return redirect('catalogue:bio')…
return super().get(request, *args, **kwargs)
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['category'] = self.category
Variable | Value |
---|---|
__class__ | <class 'NousOnAime.catalogue.views.ProductCategoryView'> |
args | () |
kwargs | {'category_slug': 'marques/le-creuset', 'pk': '1032'} |
request | <WSGIRequest: GET '/catalogue/category/marques/le-creuset_1032/?page=2'> |
self | <NousOnAime.catalogue.views.ProductCategoryView object at 0x7f2c04514710> |
/usr/local/lib/python3.7/dist-packages/django/shortcuts.py
, line 41, in redirect
* A URL, which will be used as-is for the redirect location.
Issues a temporary redirect by default; pass permanent=True to issue a
permanent redirect.
"""
redirect_class = HttpResponsePermanentRedirect if permanent else HttpResponseRedirect
return redirect_class(resolve_url(to, *args, **kwargs))…
def _get_queryset(klass):
"""
Return a QuerySet or a Manager.
Duck typing in action: any class with a `get()` method (for
Variable | Value |
---|---|
args | () |
kwargs | {} |
permanent | False |
redirect_class | <class 'django.http.response.HttpResponseRedirect'> |
to | 'catalogue:bio' |
/usr/local/lib/python3.7/dist-packages/django/shortcuts.py
, line 131, in resolve_url
if isinstance(to, str):
# Handle relative URLs
if to.startswith(('./', '../')):
return to
# Next try a reverse URL resolution.
try:
return reverse(to, args=args, kwargs=kwargs)…
except NoReverseMatch:
# If this is a callable, re-raise.
if callable(to):
raise
# If this doesn't "feel" like a URL, re-raise.
if '/' not in to and '.' not in to:
Variable | Value |
---|---|
args | () |
kwargs | {} |
to | 'catalogue:bio' |
/usr/local/lib/python3.7/dist-packages/django/urls/base.py
, line 87, 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 | ['catalogue'] |
args | [] |
current_app | None |
current_ns | None |
current_path | None |
extra | 'catalogue/' |
kwargs | {} |
ns | 'catalogue' |
ns_converters | {} |
ns_pattern | 'catalogue/' |
path | ['catalogue'] |
prefix | '/' |
resolved_path | ['catalogue'] |
resolver | <URLResolver <URLResolver list> (None:None) '^/'> |
urlconf | 'NousOnAime.urls' |
view | 'bio' |
viewname | 'catalogue:bio' |
/usr/local/lib/python3.7/dist-packages/django/urls/resolvers.py
, line 685, in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
args | () |
kwargs | {} |
lookup_view | 'bio' |
lookup_view_s | 'bio' |
m | None |
msg | ("Reverse for 'bio' not found. 'bio' is not a valid view function or pattern " 'name.') |
n | None |
patterns | [] |
possibilities | [] |
self | <URLResolver <URLResolver list> (None:None) '^/'> |
AnonymousUser
Variable | Value |
---|---|
page | '2' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/var/www/html' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'nousonm.com' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/catalogue/category/marques/le-creuset_1032/' |
PATH_TRANSLATED | '/var/www/html/website/NousOnAime/wsgi.py/catalogue/category/marques/le-creuset_1032/' |
QUERY_STRING | 'page=2' |
REMOTE_ADDR | '44.192.247.185' |
REMOTE_PORT | '53808' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/catalogue/category/marques/le-creuset_1032/?page=2' |
SCRIPT_FILENAME | '/var/www/html/website/NousOnAime/wsgi.py' |
SCRIPT_NAME | '' |
SERVER_ADDR | '195.154.243.219' |
SERVER_ADMIN | 'webmaster@localhost' |
SERVER_NAME | 'nousonm.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '********************' |
SERVER_SOFTWARE | 'Apache/2.4.38 (Debian)' |
SSL_TLS_SNI | 'nousonm.com' |
apache.version | (2, 4, 38) |
mod_wsgi.application_group | 'nousonm.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1711656598424841' |
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 | '/catalogue/category/marques/le-creuset_1032/' |
mod_wsgi.process_group | 'nousonm' |
mod_wsgi.queue_start | '1711656598424631' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'qcuGG6a9fBU' |
mod_wsgi.request_start | '1711656598424489' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711656598424902' |
mod_wsgi.thread_id | 3 |
mod_wsgi.thread_requests | 81 |
mod_wsgi.total_requests | 659 |
mod_wsgi.version | (4, 6, 5) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | <class 'mod_wsgi.FileWrapper'> |
wsgi.input | <mod_wsgi.Input object at 0x7f2c041a92d0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
NousOnAime.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('oscar.apps.customer.auth_backends.EmailBackend', 'django.contrib.auth.backends.ModelBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/html/website' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_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.mysql', 'HOST': 'localhost', 'NAME': 'nousonaime', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'noa_2020_november'}} |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'nousonaime13@gmail.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_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'INCLUDE_SPELLING': True, 'URL': 'http://127.0.0.1:8983/solr'}} |
HAYSTACK_SIGNAL_PROCESSOR | 'haystack.signals.RealtimeSignalProcessor' |
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', 'django.contrib.flatpages', 'oscar.config.Shop', 'oscar.apps.analytics.apps.AnalyticsConfig', 'NousOnAime.checkout.apps.CheckoutConfig', 'oscar.apps.address.apps.AddressConfig', 'NousOnAime.shipping.apps.ShippingConfig', 'NousOnAime.catalogue.apps.CatalogueConfig', 'oscar.apps.catalogue.reviews.apps.CatalogueReviewsConfig', 'oscar.apps.communication.apps.CommunicationConfig', 'NousOnAime.partner.apps.PartnerConfig', 'NousOnAime.basket.apps.BasketConfig', 'oscar.apps.payment.apps.PaymentConfig', 'NousOnAime.offer.apps.OfferConfig', 'oscar.apps.order.apps.OrderConfig', 'NousOnAime.customer.apps.CustomerConfig', 'NousOnAime.search.apps.SearchConfig', 'NousOnAime.voucher.apps.VoucherConfig', 'oscar.apps.wishlists.apps.WishlistsConfig', 'NousOnAime.dashboard.apps.DashboardConfig', 'oscar.apps.dashboard.reports.apps.ReportsDashboardConfig', 'oscar.apps.dashboard.users.apps.UsersDashboardConfig', 'NousOnAime.dashboard.orders.apps.OrdersDashboardConfig', 'NousOnAime.dashboard.catalogue.apps.CatalogueDashboardConfig', 'oscar.apps.dashboard.offers.apps.OffersDashboardConfig', 'NousOnAime.dashboard.partners.apps.PartnersDashboardConfig', 'oscar.apps.dashboard.pages.apps.PagesDashboardConfig', 'oscar.apps.dashboard.ranges.apps.RangesDashboardConfig', 'oscar.apps.dashboard.reviews.apps.ReviewsDashboardConfig', 'oscar.apps.dashboard.vouchers.apps.VouchersDashboardConfig', 'oscar.apps.dashboard.communications.apps.CommunicationsDashboardConfig', 'oscar.apps.dashboard.shipping.apps.ShippingDashboardConfig', 'paypal.express.dashboard.apps.ExpressDashboardApplication', 'paypal.express_checkout.dashboard.apps.ExpressCheckoutDashboardApplication', 'paypal.payflow.dashboard.apps.PayFlowDashboardApplication', 'widget_tweaks', 'haystack', 'treebeard', 'sorl.thumbnail', 'django_tables2', 'home', 'new_product', 'django.contrib.sitemaps', 'paypal'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian 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'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('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'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'fr-fr' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MAINTENANCE_MODE | 0 |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/html/website/media' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'oscar.apps.basket.middleware.BasketMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'home.middleware.MaintenanceModeMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
MY_OSCAR_POINT_RELAIS_ADDRESS_NAME | 'Point Relais' |
MY_OSCAR_SHOP_ADDRESS_NAME | 'Nous, On Aime' |
NUMBER_GROUPING | 0 |
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_DASHBOARD_DEFAULT_ACCESS_FUNCTION | 'oscar.apps.dashboard.nav.default_access_fn' |
OSCAR_DASHBOARD_ITEMS_PER_PAGE | 20 |
OSCAR_DASHBOARD_NAVIGATION | [{'icon': 'fas fa-list', 'label': 'Tableau de bord', 'url_name': 'dashboard:index'}, {'children': [{'label': 'Produits', 'url_name': 'dashboard:catalogue-product-list'}, {'label': 'Types de produits', 'url_name': 'dashboard:catalogue-class-list'}, {'label': 'Catégories', 'url_name': 'dashboard:catalogue-category-list'}, {'label': 'Gammes', 'url_name': 'dashboard:range-list'}, {'label': 'Alertes sur stock bas', 'url_name': 'dashboard:stock-alert-list'}, {'label': 'Options', 'url_name': 'dashboard:catalogue-option-list'}, {'label': 'Notes', 'url_name': 'dashboard:catalogue-notes-list'}], 'icon': 'fas fa-sitemap', 'label': 'Catalogue'}, {'children': [{'label': 'Commandes', 'url_name': 'dashboard:order-list'}, {'label': 'Statistiques', 'url_name': 'dashboard:order-stats'}, {'label': 'Partenaires', 'url_name': 'dashboard:partner-list'}], 'icon': 'fas fa-shopping-cart', 'label': 'Vente'}, {'children': [{'label': 'Clients', 'url_name': 'dashboard:users-index'}, {'label': "Demandes d'alerte sur le stock", 'url_name': 'dashboard:user-alert-list'}], 'icon': 'fas fa-users', 'label': 'Clients'}, {'children': [{'label': 'Offres', 'url_name': 'dashboard:offer-list'}, {'label': 'Codes de réduction', 'url_name': 'dashboard:voucher-list'}, {'label': 'Ensembles de bons', 'url_name': 'dashboard:voucher-set-list'}], 'icon': 'fas fa-bullhorn', 'label': 'Offres'}, {'children': [{'label': 'Pages', 'url_name': 'dashboard:page-list'}, {'label': "Modèles d'e-mails", 'url_name': 'dashboard:comms-list'}, {'label': 'Avis', 'url_name': 'dashboard:reviews-list'}], 'icon': 'fas fa-folder', 'label': 'Contenu'}, {'icon': 'fas fa-chart-bar', 'label': 'Rapports', 'url_name': 'dashboard:reports-index'}, {'children': [{'label': 'PayFlow transactions', 'url_name': 'payflow_dashboard:paypal-payflow-list'}, {'label': 'Express transactions', 'url_name': 'express_dashboard:paypal-express-list'}, {'label': 'Express Checkout transactions', 'url_name': 'express_checkout_dashboard:paypal-transaction-list'}], 'icon': 'icon-globe', 'label': 'PayPal'}, {'access_fn': <function <lambda> at 0x7f2c075b90d0>, 'icon': 'fas fa-list', 'label': 'Admin site', 'url_name': 'admin:index'}] |
OSCAR_DEFAULT_CURRENCY | 'EUR' |
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 | 'nousonaime13@gmail.com' |
OSCAR_GOOGLE_ANALYTICS_ID | 'G-W7RJV35MME' |
OSCAR_HIDDEN_FEATURES | [] |
OSCAR_HOMEPAGE | '/home/' |
OSCAR_IMAGE_FOLDER | 'images/products/%Y/%m/' |
OSCAR_INITIAL_LINE_STATUS | 'Pending' |
OSCAR_INITIAL_ORDER_STATUS | 'Pending' |
OSCAR_MAX_BASKET_QUANTITY_THRESHOLD | 10000 |
OSCAR_MISSING_IMAGE_URL | 'my_image_not_found.jpg' |
OSCAR_MODERATE_REVIEWS | False |
OSCAR_NOTIFICATIONS_PER_PAGE | 20 |
OSCAR_OFFERS_INCL_TAX | False |
OSCAR_OFFERS_PER_PAGE | 20 |
OSCAR_ORDERS_PER_PAGE | 20 |
OSCAR_ORDER_STATUS_CASCADE | {'Cancelled': 'Cancelled', 'Delivered': 'Delivered', 'Processing': 'In progress', 'Returned': 'Returned', 'Shipped': 'Shipped'} |
OSCAR_ORDER_STATUS_PIPELINE | {'Cancelled': (), 'Delivered': (), 'Pending': ('Processing', 'Cancelled'), 'Processing': ('WaitingPaiement',), 'Ready': ('Delivered', 'Return', 'Returned', 'Cancelled'), 'Returned': ('Return', 'Returned'), 'Shipped': ('Delivered', 'Return', 'Returned', 'Cancelled'), 'WaitingPaiement': ('Ready', 'Shipped', 'Cancelled')} |
OSCAR_PRODUCTS_PER_PAGE | 12 |
OSCAR_PRODUCT_SEARCH_HANDLER | None |
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_SAVE_SENT_EMAILS_TO_DB | True |
OSCAR_SEARCH_FACETS | {'fields': {'bio': {'field': 'bio', 'name': 'Bio'}, 'product_class': {'field': 'product_class', 'name': 'Type'}, 'rating': {'field': 'rating', 'name': 'Évaluation'}}, 'queries': {'note_range': {'field': 'notes', 'name': 'Note range', 'queries': [('95+', '[95 TO *]'), ('90-94', '[90 TO 94]'), ('85-89', '[85 TO 89]'), ('<85', '[0 TO 84]')]}, 'price_range': {'field': 'price', 'name': 'Gamme de prix', 'queries': [('de 0 à 20', '[0 TO 20]'), ('20 à 40', '[20 TO 40]'), ('40 à 60', '[40 TO 60]'), ('60 et +', '[60 TO *]')]}}} |
OSCAR_SEND_REGISTRATION_EMAIL | True |
OSCAR_SHOP_NAME | 'Nous On Aime' |
OSCAR_SHOP_TAGLINE | '' |
OSCAR_SHOW_TAX_SEPARATELY | True |
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_THUMBNAILER | 'oscar.core.thumbnails.SorlThumbnail' |
OSCAR_URL_SCHEMA | 'http' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PAYPAL_API_PASSWORD | '********************' |
PAYPAL_API_SIGNATURE | '********************' |
PAYPAL_API_USERNAME | '********************' |
PAYPAL_API_VERSION | '********************' |
PAYPAL_CALLBACK_HTTPS | True |
PAYPAL_CLIENT_ID | 'AdU-JXLXDSh5zcLeNL7A7YfsZXO35OMLhsqQ8BZZRdWjXBAc9AvHCmWV2lrKLQ2-7uD5pnYqlXKi4bjA' |
PAYPAL_CLIENT_SECRET | '********************' |
PAYPAL_CURRENCY | 'EUR' |
PAYPAL_PAYFLOW_DASHBOARD_FORMS | True |
PAYPAL_SANDBOX_MODE | False |
PREPEND_WWW | False |
ROOT_URLCONF | 'NousOnAime.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
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 | 'NousOnAime.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | ['fields.W903'] |
SITE_ID | 2 |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/html/website/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/html/website/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', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.communication.notifications.context_processors.notifications', 'oscar.core.context_processors.metadata', 'NousOnAime.context_processors.show_tax_separately']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | '.' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | True |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'NousOnAime.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.