get() returned more than one Translation -- it returned 2!
Request Method: | GET |
---|---|
Request URL: | http://euroagora.getproduce.co/en/api/1.0/store/10/department/8503/aisle/13078/ |
Django Version: | 3.1.4 |
Exception Type: | MultipleObjectsReturned |
Exception Value: | get() returned more than one Translation -- it returned 2! |
Exception Location: | /var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/django/db/models/query.py, line 436, in get |
Python Executable: | /var/www/virtualenvironments/grocery.getproduce.co/bin/python |
Python Version: | 3.6.9 |
Python Path: | ['/var/www/getproduce.co/grocery/www', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages'] |
Server time: | Thu, 31 Oct 2024 01:25:42 +0000 |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-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 | MultipleObjectsReturned('get() returned more than one Translation -- it returned 2!',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fb92c8e9630>> |
request | <WSGIRequest: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-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 AisleRestApiView at 0x7fb915ff78c8> |
callback_args | () |
callback_kwargs | {'aisle_id': '13078', 'department_id': '8503', 'store_location_id': '10'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fb9255ea4a8>> |
request | <WSGIRequest: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fb92c8e9630> |
wrapped_callback | <function AisleRestApiView at 0x7fb915ff78c8> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/django/views/decorators/csrf.py
, line 54, in wrapped_view
def csrf_exempt(view_func):
"""Mark a view function as being exempt from the CSRF view protection."""
# view_func.csrf_exempt = True would also work, but decorators are nicer
# if they don't have side effects, so return a new function.
def wrapped_view(*args, **kwargs):
return view_func(*args, **kwargs)â¦
wrapped_view.csrf_exempt = True
return wraps(view_func)(wrapped_view)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'>,) |
kwargs | {'aisle_id': '13078', 'department_id': '8503', 'store_location_id': '10'} |
view_func | <function AisleRestApiView at 0x7fb915ff7840> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/rest_framework/viewsets.py
, line 125, in view
setattr(self, method, handler)
self.request = request
self.args = args
self.kwargs = kwargs
# And continue as usual
return self.dispatch(request, *args, **kwargs)â¦
# take name and docstring from class
update_wrapper(view, cls, updated=())
# and possible attributes set by decorators
# like csrf_exempt from dispatch
Variable | Value |
---|---|
action | 'list' |
actions | {'get': 'list', 'head': 'list'} |
args | () |
cls | <class 'eshop.views_api_1_0.AisleRestApiView'> |
handler | <bound method AisleRestApiView.list of <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940>> |
initkwargs | {} |
kwargs | {'aisle_id': '13078', 'department_id': '8503', 'store_location_id': '10'} |
method | 'head' |
request | <WSGIRequest: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
self | <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/rest_framework/views.py
, line 509, in dispatch
self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
response = handler(request, *args, **kwargs)
except Exception as exc:
response = self.handle_exception(exc)â¦
self.response = self.finalize_response(request, response, *args, **kwargs)
return self.response
def options(self, request, *args, **kwargs):
"""
Variable | Value |
---|---|
args | () |
handler | <bound method AisleRestApiView.list of <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940>> |
kwargs | {'aisle_id': '13078', 'department_id': '8503', 'store_location_id': '10'} |
request | <rest_framework.request.Request: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
self | <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/rest_framework/views.py
, line 469, in handle_exception
exception_handler = self.get_exception_handler()
context = self.get_exception_handler_context()
response = exception_handler(exc, context)
if response is None:
self.raise_uncaught_exception(exc)â¦
response.exception = True
return response
def raise_uncaught_exception(self, exc):
if settings.DEBUG:
Variable | Value |
---|---|
context | {'args': (), 'kwargs': {'aisle_id': '13078', 'department_id': '8503', 'store_location_id': '10'}, 'request': <rest_framework.request.Request: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'>, 'view': <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940>} |
exc | MultipleObjectsReturned('get() returned more than one Translation -- it returned 2!',) |
exception_handler | <function exception_handler at 0x7fb92267e378> |
response | None |
self | <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/rest_framework/views.py
, line 480, in raise_uncaught_exception
def raise_uncaught_exception(self, exc):
if settings.DEBUG:
request = self.request
renderer_format = getattr(request.accepted_renderer, 'format')
use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
request.force_plaintext_errors(use_plaintext_traceback)
raise excâ¦
# Note: Views are made CSRF exempt from within `as_view` as to prevent
# accidental removal of this exemption in cases where `dispatch` needs to
# be overridden.
def dispatch(self, request, *args, **kwargs):
"""
Variable | Value |
---|---|
exc | MultipleObjectsReturned('get() returned more than one Translation -- it returned 2!',) |
renderer_format | 'json' |
request | <rest_framework.request.Request: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
self | <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940> |
use_plaintext_traceback | True |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/rest_framework/views.py
, line 506, in dispatch
# Get the appropriate handler method
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
response = handler(request, *args, **kwargs)â¦
except Exception as exc:
response = self.handle_exception(exc)
self.response = self.finalize_response(request, response, *args, **kwargs)
return self.response
Variable | Value |
---|---|
args | () |
handler | <bound method AisleRestApiView.list of <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940>> |
kwargs | {'aisle_id': '13078', 'department_id': '8503', 'store_location_id': '10'} |
request | <rest_framework.request.Request: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
self | <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940> |
/var/www/getproduce.co/grocery/www/eshop/views_api_1_0.py
, line 563, in list
aisle = self.get_queryset().get(department_id=department_id, pk=aisle_id)
if aisle is None:
raise Http404
if is_foreign_language(current_language, store_location.default_language):
try:
aisle_translation = Translation.objects.get(xx_inthash=Translation.get_hash(aisle.name), store=store_location.store, str_language=current_language)
aisle.name = aisle_translation.msgstr
department_translation = Translation.objects.get(xx_inthash=Translation.get_hash(aisle.department.name), store=store_location.store, str_language=current_language)â¦
aisle.department.name = department_translation.msgstr
except Translation.DoesNotExist:
pass
serializer = self.serializer_class(aisle)
return Response(serializer.data)
Variable | Value |
---|---|
aisle | <Aisle: Cups> |
aisle_id | '13078' |
aisle_translation | <Translation: gr: "ΦλιÏζάνια", en: "Cups"> |
current_language | 'en' |
department_id | '8503' |
request | <rest_framework.request.Request: GET '/en/api/1.0/store/10/department/8503/aisle/13078/'> |
self | <eshop.views_api_1_0.AisleRestApiView object at 0x7fb9157a3940> |
store_location | <StoreLocation: ÎÏ ÏοαγοÏα> |
store_location_id | '10' |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/django/db/models/manager.py
, line 85, in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)â¦
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
for name, method in inspect.getmembers(queryset_class, predicate=inspect.isfunction):
Variable | Value |
---|---|
args | () |
kwargs | {'store': <Store: ÎÏ ÏοαγοÏα>, 'str_language': 'en', 'xx_inthash': 424938933} |
name | 'get' |
self | <django.db.models.manager.Manager object at 0x7fb91575ecc0> |
/var/www/virtualenvironments/grocery.getproduce.co/lib/python3.6/site-packages/django/db/models/query.py
, line 436, in get
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name
)
raise self.model.MultipleObjectsReturned(
'get() returned more than one %s -- it returned %s!' % (
self.model._meta.object_name,
num if not limit or num < limit else 'more than %s' % (limit - 1),â¦
)
)
def create(self, **kwargs):
"""
Create a new object with the given kwargs, saving it to the database
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<Translation: gr: "Îιδη ΣεÏβιÏιÏμαÏοÏ", en: "Serving Items">, <Translation: gr: "Îιδη ΣεÏβιÏιÏμαÏοÏ", en: "Serving Items">]> |
kwargs | {'store': <Store: ÎÏ ÏοαγοÏα>, 'str_language': 'en', 'xx_inthash': 424938933} |
limit | 21 |
num | 2 |
self | <QuerySet [<Translation: gr: "ÎÏγαλεια ÎεÏÎ¿Ï - ÎεÏοÏÏ Î¼ÏιεÏÏεÏ", en: "Air Tools - Air Compressors">, <Translation: gr: "ÎηÏανημαÏα ÎÏεξεÏγαÏÎ¹Î±Ï ÎÏ Î»Î¿Ï ", en: "Wood Processing Machinery">, <Translation: gr: "ÎιομηÏÎ±Î½Î¹ÎºÎ¿Ï ÎξοÏλιÏμοÏ", en: "Industrial equipment">, <Translation: gr: "ÎηÏανημαÏα ÎηÏÎ¿Ï ", en: "Garden Machinery">, <Translation: gr: "ÎλεκÏÏικά ÎÏγαλεία", en: "Electric tools">, <Translation: gr: "ÎÏομική Î ÏοÏÏαÏία", en: "Personal Protection">, <Translation: gr: "ÎÏγανα ÎÎÏÏηÏηÏ", en: "Gauges">, <Translation: gr: "ÎÏγαλεία ÎÏαÏαÏίαÏ", en: "Battery Tools">, <Translation: gr: "ÎÏγαλεία ΧειÏÏÏ", en: "Hand Tools">, <Translation: gr: "ΣκάλεÏ", en: "Stairs">, <Translation: gr: "Îιδη Î ÏοÏÏαÏιαÏ", en: "Protection Items">, <Translation: gr: "ÎÏγαλεια ÎηÏÎ¿Ï ", en: "Garden tools">, <Translation: gr: "Îιδη ΠοÏιÏμαÏÎ¿Ï ÎηÏÎ¿Ï ", en: "Garden Watering Items">, <Translation: gr: "Î£Ï Î³ÎºÎ¿Î»Î»Î·Ïη - ΦοÏÏιÏη", en: "Welding - Charging">, <Translation: gr: "ÎÏγαλεια ΧειÏÎ¿Ï Total", en: "Total Hand Tools">, <Translation: gr: "Îομικα ÎηÏανημαÏα", en: "Construction Machinery">, <Translation: gr: "ÎÏγαλεια Î£Ï Î½ÎµÏÎ³ÎµÎ¹Î¿Ï ", en: "Workshop Tools">, <Translation: gr: "ÎαγειÏικα Î£ÎºÎµÏ Î·", en: "Cookers">, <Translation: gr: "ÎÏγαλεια ÎÎ¿Ï Î¶Î¹Î½Î±Ï", en: "Kitchen Tools">, <Translation: gr: "Îιδη ΣεÏβιÏιÏμαÏοÏ", en: "Serving Items">, '...(remaining elements truncated)...']> |
AnonymousUser
No GET data
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_ACCEPT_ENCODING | 'gzip, br' |
HTTP_CDN_LOOP | 'cloudflare; loops=1' |
HTTP_CF_CONNECTING_IP | '2001:19f0:5:5f99:5400:2ff:fe77:6666' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '8dafda4e7d614349-EWR' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 'euroagora.getproduce.co' |
HTTP_USER_AGENT | 'python-requests/2.25.1' |
HTTP_X_FORWARDED_FOR | '2001:19f0:5:5f99:5400:2ff:fe77:6666' |
HTTP_X_FORWARDED_PROTO | 'https' |
PATH_INFO | '/en/api/1.0/store/10/department/8503/aisle/13078/' |
PATH_TRANSLATED | '/var/www/getproduce.co/grocery/www/system/wsgi.py/en/api/1.0/store/10/department/8503/aisle/13078/' |
QUERY_STRING | '' |
REMOTE_ADDR | '162.158.154.115' |
REMOTE_PORT | '16372' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/en/api/1.0/store/10/department/8503/aisle/13078/' |
SCRIPT_FILENAME | '/var/www/getproduce.co/grocery/www/system/wsgi.py' |
SCRIPT_NAME | '' |
SERVER_ADDR | '45.77.111.157' |
SERVER_ADMIN | '[no address given]' |
SERVER_NAME | 'euroagora.getproduce.co' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '********************' |
SERVER_SOFTWARE | 'Apache/2.4.29 (Ubuntu)' |
apache.version | (2, 4, 29) |
mod_wsgi.application_group | 'grocery.getproduce.co|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1730337942821049' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '80' |
mod_wsgi.path_info | '/en/api/1.0/store/10/department/8503/aisle/13078/' |
mod_wsgi.process_group | 'grocery.getproduce.co' |
mod_wsgi.queue_start | '1730337942820872' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | '6VZsshtpLEM' |
mod_wsgi.request_start | '1730337942820585' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1730337942821178' |
mod_wsgi.thread_id | 2 |
mod_wsgi.thread_requests | 103 |
mod_wsgi.total_requests | 336 |
mod_wsgi.version | (4, 5, 17) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | <class 'mod_wsgi.FileWrapper'> |
wsgi.input | <mod_wsgi.Input object at 0x7fb915803570> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
system.settings
Setting | Value |
---|---|
AADE_LIVE_MODE | 'False' |
AADE_SUBSCRIPTION_KEY | '********************' |
AADE_USER_ID | 'gkaitatzns' |
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATION_METHOD | 'email' |
ACCOUNT_EMAIL_MAX_LENGTH | 254 |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_EMAIL_VERIFICATION | 'optional' |
ACCOUNT_SESSION_REMEMBER | True |
ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE | '********************' |
ACCOUNT_UNIQUE_EMAIL | True |
ACCOUNT_USERNAME_REQUIRED | False |
ACCOUNT_USER_MODEL_USERNAME_FIELD | None |
ADMINS | [('Tony', '[email protected]'), ('Tony', '[email protected]')] |
ADMIN_EMAIL | '[email protected]' |
ALLOWED_HOSTS | ['localhost', '*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'common.User' |
BASE_DIR | '/var/www/getproduce.co/grocery/www' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CORS_ALLOW_ALL_ORIGINS | True |
CORS_ALLOW_CREDENTIALS | False |
CORS_ORIGIN_ALLOW_ALL | True |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'ramnode.tonygaitatzis.com', 'NAME': 'grocery_delivery', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 3306, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'grocery_delivery'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | None |
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_AUTHENTICATION_BACKEND | 'allauth.account.auth_backends.AuthenticationBackend' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
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_CONFIG | {'EMAIL_BACKEND': 'django.core.mail.backends.smtp.EmailBackend', 'EMAIL_FILE_PATH': '', 'EMAIL_HOST': 'smtp.sendgrid.net', 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST_USER': 'apikey', 'EMAIL_PORT': 587, 'EMAIL_USE_TLS': True} |
EMAIL_FILE_PATH | '' |
EMAIL_HOST | 'smtp.sendgrid.net' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'apikey' |
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 |
EXTRA_LANG_INFO | {'gr': {'bidi': False, 'code': 'gr', 'name': 'Greek', 'name_local': 'Îλληνικά', 'name_translated': 'Greek'}} |
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' |
GOOGLE_TRANSLATE_API_KEY | '********************' |
GOOGLE_TRANSLATE_PROJECT_ID | 'lunar-standard-233312' |
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', 'rest_framework', 'common', 'eshop', 'manage', 'allauth', 'allauth.account', 'allauth.socialaccount', 'debug_toolbar', 'phonenumber_field', 'crispy_forms', 'drf_yasg', 'scratch', 'query_parameters', 'markdownify'] |
INTERNAL_IPS | ['127.0.0.1'] |
LANGUAGES | (('en', 'English'), ('gr', 'Îλληνικά')) |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur', 'gr'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LANG_INFO | {'af': {'bidi': False, 'code': 'af', 'name': 'Afrikaans', 'name_local': 'Afrikaans'}, 'ar': {'bidi': True, 'code': 'ar', 'name': 'Arabic', 'name_local': 'اÙعربÙÙØ©'}, 'ar-dz': {'bidi': True, 'code': 'ar-dz', 'name': 'Algerian Arabic', 'name_local': 'اÙعربÙØ© اÙجزائرÙØ©'}, 'ast': {'bidi': False, 'code': 'ast', 'name': 'Asturian', 'name_local': 'asturianu'}, 'az': {'bidi': True, 'code': 'az', 'name': 'Azerbaijani', 'name_local': 'AzÉrbaycanca'}, 'be': {'bidi': False, 'code': 'be', 'name': 'Belarusian', 'name_local': 'белаÑÑÑкаÑ'}, 'bg': {'bidi': False, 'code': 'bg', 'name': 'Bulgarian', 'name_local': 'бÑлгаÑÑки'}, 'bn': {'bidi': False, 'code': 'bn', 'name': 'Bengali', 'name_local': 'বাà¦à¦²à¦¾'}, 'br': {'bidi': False, 'code': 'br', 'name': 'Breton', 'name_local': 'brezhoneg'}, 'bs': {'bidi': False, 'code': 'bs', 'name': 'Bosnian', 'name_local': 'bosanski'}, 'ca': {'bidi': False, 'code': 'ca', 'name': 'Catalan', 'name_local': 'català '}, 'cs': {'bidi': False, 'code': 'cs', 'name': 'Czech', 'name_local': 'Äesky'}, 'cy': {'bidi': False, 'code': 'cy', 'name': 'Welsh', 'name_local': 'Cymraeg'}, 'da': {'bidi': False, 'code': 'da', 'name': 'Danish', 'name_local': 'dansk'}, 'de': {'bidi': False, 'code': 'de', 'name': 'German', 'name_local': 'Deutsch'}, 'dsb': {'bidi': False, 'code': 'dsb', 'name': 'Lower Sorbian', 'name_local': 'dolnoserbski'}, 'el': {'bidi': False, 'code': 'el', 'name': 'Greek', 'name_local': 'Îλληνικά'}, 'en': {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}, 'en-au': {'bidi': False, 'code': 'en-au', 'name': 'Australian English', 'name_local': 'Australian English'}, 'en-gb': {'bidi': False, 'code': 'en-gb', 'name': 'British English', 'name_local': 'British English'}, 'eo': {'bidi': False, 'code': 'eo', 'name': 'Esperanto', 'name_local': 'Esperanto'}, 'es': {'bidi': False, 'code': 'es', 'name': 'Spanish', 'name_local': 'español'}, 'es-ar': {'bidi': False, 'code': 'es-ar', 'name': 'Argentinian Spanish', 'name_local': 'español de Argentina'}, 'es-co': {'bidi': False, 'code': 'es-co', 'name': 'Colombian Spanish', 'name_local': 'español de Colombia'}, 'es-mx': {'bidi': False, 'code': 'es-mx', 'name': 'Mexican Spanish', 'name_local': 'español de Mexico'}, 'es-ni': {'bidi': False, 'code': 'es-ni', 'name': 'Nicaraguan Spanish', 'name_local': 'español de Nicaragua'}, 'es-ve': {'bidi': False, 'code': 'es-ve', 'name': 'Venezuelan Spanish', 'name_local': 'español de Venezuela'}, 'et': {'bidi': False, 'code': 'et', 'name': 'Estonian', 'name_local': 'eesti'}, 'eu': {'bidi': False, 'code': 'eu', 'name': 'Basque', 'name_local': 'Basque'}, 'fa': {'bidi': True, 'code': 'fa', 'name': 'Persian', 'name_local': 'ÙارسÛ'}, 'fi': {'bidi': False, 'code': 'fi', 'name': 'Finnish', 'name_local': 'suomi'}, 'fr': {'bidi': False, 'code': 'fr', 'name': 'French', 'name_local': 'français'}, 'fy': {'bidi': False, 'code': 'fy', 'name': 'Frisian', 'name_local': 'frysk'}, 'ga': {'bidi': False, 'code': 'ga', 'name': 'Irish', 'name_local': 'Gaeilge'}, 'gd': {'bidi': False, 'code': 'gd', 'name': 'Scottish Gaelic', 'name_local': 'Gà idhlig'}, 'gl': {'bidi': False, 'code': 'gl', 'name': 'Galician', 'name_local': 'galego'}, 'gr': {'bidi': False, 'code': 'gr', 'name': 'Greek', 'name_local': 'Îλληνικά', 'name_translated': 'Greek'}, 'he': {'bidi': True, 'code': 'he', 'name': 'Hebrew', 'name_local': '×¢×ר×ת'}, 'hi': {'bidi': False, 'code': 'hi', 'name': 'Hindi', 'name_local': 'हिà¤à¤¦à¥'}, 'hr': {'bidi': False, 'code': 'hr', 'name': 'Croatian', 'name_local': 'Hrvatski'}, 'hsb': {'bidi': False, 'code': 'hsb', 'name': 'Upper Sorbian', 'name_local': 'hornjoserbsce'}, 'hu': {'bidi': False, 'code': 'hu', 'name': 'Hungarian', 'name_local': 'Magyar'}, 'hy': {'bidi': False, 'code': 'hy', 'name': 'Armenian', 'name_local': 'Õ°Õ¡ÕµÕ¥ÖÕ¥Õ¶'}, 'ia': {'bidi': False, 'code': 'ia', 'name': 'Interlingua', 'name_local': 'Interlingua'}, 'id': {'bidi': False, 'code': 'id', 'name': 'Indonesian', 'name_local': 'Bahasa Indonesia'}, 'ig': {'bidi': False, 'code': 'ig', 'name': 'Igbo', 'name_local': 'Asụsụ Ãgbò'}, 'io': {'bidi': False, 'code': 'io', 'name': 'Ido', 'name_local': 'ido'}, 'is': {'bidi': False, 'code': 'is', 'name': 'Icelandic', 'name_local': 'Ãslenska'}, 'it': {'bidi': False, 'code': 'it', 'name': 'Italian', 'name_local': 'italiano'}, 'ja': {'bidi': False, 'code': 'ja', 'name': 'Japanese', 'name_local': 'æ¥æ¬èª'}, 'ka': {'bidi': False, 'code': 'ka', 'name': 'Georgian', 'name_local': 'á¥áá áá£áá'}, 'kab': {'bidi': False, 'code': 'kab', 'name': 'Kabyle', 'name_local': 'taqbaylit'}, 'kk': {'bidi': False, 'code': 'kk', 'name': 'Kazakh', 'name_local': 'ÒазаÒ'}, 'km': {'bidi': False, 'code': 'km', 'name': 'Khmer', 'name_local': 'Khmer'}, 'kn': {'bidi': False, 'code': 'kn', 'name': 'Kannada', 'name_local': 'Kannada'}, 'ko': {'bidi': False, 'code': 'ko', 'name': 'Korean', 'name_local': 'íêµì´'}, 'ky': {'bidi': False, 'code': 'ky', 'name': 'Kyrgyz', 'name_local': 'ÐÑÑгÑзÑа'}, 'lb': {'bidi': False, 'code': 'lb', 'name': 'Luxembourgish', 'name_local': 'Lëtzebuergesch'}, 'lt': {'bidi': False, 'code': 'lt', 'name': 'Lithuanian', 'name_local': 'LietuviÅ¡kai'}, 'lv': {'bidi': False, 'code': 'lv', 'name': 'Latvian', 'name_local': 'latvieÅ¡u'}, 'mk': {'bidi': False, 'code': 'mk', 'name': 'Macedonian', 'name_local': 'ÐакедонÑки'}, 'ml': {'bidi': False, 'code': 'ml', 'name': 'Malayalam', 'name_local': 'Malayalam'}, 'mn': {'bidi': False, 'code': 'mn', 'name': 'Mongolian', 'name_local': 'Mongolian'}, 'mr': {'bidi': False, 'code': 'mr', 'name': 'Marathi', 'name_local': 'मराठà¥'}, 'my': {'bidi': False, 'code': 'my', 'name': 'Burmese', 'name_local': 'áá¼ááºáá¬áá¬áá¬'}, 'nb': {'bidi': False, 'code': 'nb', 'name': 'Norwegian Bokmal', 'name_local': 'norsk (bokmÃ¥l)'}, 'ne': {'bidi': False, 'code': 'ne', 'name': 'Nepali', 'name_local': 'नà¥à¤ªà¤¾à¤²à¥'}, 'nl': {'bidi': False, 'code': 'nl', 'name': 'Dutch', 'name_local': 'Nederlands'}, 'nn': {'bidi': False, 'code': 'nn', 'name': 'Norwegian Nynorsk', 'name_local': 'norsk (nynorsk)'}, 'no': {'bidi': False, 'code': 'no', 'name': 'Norwegian', 'name_local': 'norsk'}, 'os': {'bidi': False, 'code': 'os', 'name': 'Ossetic', 'name_local': 'ÐÑон'}, 'pa': {'bidi': False, 'code': 'pa', 'name': 'Punjabi', 'name_local': 'Punjabi'}, 'pl': {'bidi': False, 'code': 'pl', 'name': 'Polish', 'name_local': 'polski'}, 'pt': {'bidi': False, 'code': 'pt', 'name': 'Portuguese', 'name_local': 'Português'}, 'pt-br': {'bidi': False, 'code': 'pt-br', 'name': 'Brazilian Portuguese', 'name_local': 'Português Brasileiro'}, 'ro': {'bidi': False, 'code': 'ro', 'name': 'Romanian', 'name_local': 'RomânÄ'}, 'ru': {'bidi': False, 'code': 'ru', 'name': 'Russian', 'name_local': 'Ð ÑÑÑкий'}, 'sk': {'bidi': False, 'code': 'sk', 'name': 'Slovak', 'name_local': 'Slovensky'}, 'sl': {'bidi': False, 'code': 'sl', 'name': 'Slovenian', 'name_local': 'SlovenÅ¡Äina'}, 'sq': {'bidi': False, 'code': 'sq', 'name': 'Albanian', 'name_local': 'shqip'}, 'sr': {'bidi': False, 'code': 'sr', 'name': 'Serbian', 'name_local': 'ÑÑпÑки'}, 'sr-latn': {'bidi': False, 'code': 'sr-latn', 'name': 'Serbian Latin', 'name_local': 'srpski (latinica)'}, 'sv': {'bidi': False, 'code': 'sv', 'name': 'Swedish', 'name_local': 'svenska'}, 'sw': {'bidi': False, 'code': 'sw', 'name': 'Swahili', 'name_local': 'Kiswahili'}, 'ta': {'bidi': False, 'code': 'ta', 'name': 'Tamil', 'name_local': 'தமிழà¯'}, 'te': {'bidi': False, 'code': 'te', 'name': 'Telugu', 'name_local': 'à°¤à±à°²à±à°à±'}, 'tg': {'bidi': False, 'code': 'tg', 'name': 'Tajik', 'name_local': 'Ñоҷикӣ'}, 'th': {'bidi': False, 'code': 'th', 'name': 'Thai', 'name_local': 'ภาษาà¹à¸à¸¢'}, 'tk': {'bidi': False, 'code': 'tk', 'name': 'Turkmen', 'name_local': 'Türkmençe'}, 'tr': {'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe'}, 'tt': {'bidi': False, 'code': 'tt', 'name': 'Tatar', 'name_local': 'ТаÑаÑÑа'}, 'udm': {'bidi': False, 'code': 'udm', 'name': 'Udmurt', 'name_local': 'УдмÑÑÑ'}, 'uk': {'bidi': False, 'code': 'uk', 'name': 'Ukrainian', 'name_local': 'УкÑаÑнÑÑка'}, 'ur': {'bidi': True, 'code': 'ur', 'name': 'Urdu', 'name_local': 'اردÙ'}, 'uz': {'bidi': False, 'code': 'uz', 'name': 'Uzbek', 'name_local': 'oÊ»zbek tili'}, 'vi': {'bidi': False, 'code': 'vi', 'name': 'Vietnamese', 'name_local': 'TiêÌng Việt'}, 'zh-cn': {'fallback': ['zh-hans']}, 'zh-hans': {'bidi': False, 'code': 'zh-hans', 'name': 'Simplified Chinese', 'name_local': 'ç®ä½ä¸æ'}, 'zh-hant': {'bidi': False, 'code': 'zh-hant', 'name': 'Traditional Chinese', 'name_local': 'ç¹é«ä¸æ'}, 'zh-hk': {'fallback': ['zh-hant']}, 'zh-mo': {'fallback': ['zh-hant']}, 'zh-my': {'fallback': ['zh-hans']}, 'zh-sg': {'fallback': ['zh-hans']}, 'zh-tw': {'fallback': ['zh-hant']}} |
LOCALE_PATHS | ('/var/www/getproduce.co/grocery/www/locale',) |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MAIL_TOOLBAR_TTL | 86400 |
MANAGERS | [('Tony', '[email protected]'), ('Tony', '[email protected]')] |
MEDIA_ROOT | '/var/www/getproduce.co/grocery/www/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['common.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.common.BrokenLinkEmailsMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.middleware.locale.LocaleMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REST_FRAMEWORK | {'DATETIME_FORMAT': '%s', 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'DEFAULT_PARSER_CLASSES': ('djangorestframework_camel_case.parser.CamelCaseFormParser', 'djangorestframework_camel_case.parser.CamelCaseMultiPartParser', 'djangorestframework_camel_case.parser.CamelCaseJSONParser'), 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'], 'DEFAULT_RENDERER_CLASSES': ('djangorestframework_camel_case.render.CamelCaseJSONRenderer', 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer'), 'EXCEPTION_HANDLER': 'rest_framework.views.exception_handler', 'JSON_UNDERSCOREIZE': {'no_underscore_before_number': True}, 'PAGE_SIZE': 20} |
ROOT_URLCONF | 'system.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 | '[email protected]' |
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 | 'system.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/getproduce.co/grocery/www/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
STRIPE_API_VERSION | '********************' |
STRIPE_ENDPOINT_SECRET | '********************' |
STRIPE_LIVE_ENDPOINT_SECRET | '********************' |
STRIPE_LIVE_MODE | False |
STRIPE_LIVE_PUBLIC_KEY | '********************' |
STRIPE_LIVE_SECRET_KEY | '********************' |
STRIPE_PUBLIC_KEY | '********************' |
STRIPE_SECRET_KEY | '********************' |
STRIPE_TEST_ENDPOINT_SECRET | '********************' |
STRIPE_TEST_PUBLIC_KEY | '********************' |
STRIPE_TEST_SECRET_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/getproduce.co/grocery/www/templates', '/var/www/getproduce.co/grocery/www/templates/allauth', '/var/www/getproduce.co/grocery/www/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', 'django.template.context_processors.i18n']}}] |
TEMPLATE_LOADERS | (('django.template.loaders.cached.Loader', ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')),) |
TEMPLATE_STRING_IF_INVALID | 'Invalid Property Found: {}' |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'system.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.