list index out of range
Request Method: | GET |
---|---|
Request URL: | https://photonicsolutioncenter.com/products/stoxk-uv-ir-sheet-polarizers-hn38s/ |
Django Version: | 2.1.8 |
Exception Type: | IndexError |
Exception Value: | list index out of range |
Exception Location: | /usr/local/lib/python3.6/site-packages/django/db/models/query.py in __getitem__, line 1379 |
Python Executable: | /usr/bin/python36 |
Python Version: | 3.6.8 |
Python Path: | ['/home/ec2-user/photonicsolutioncenter/src', '/usr/local/bin', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/usr/local/lib64/python3.6/site-packages', '/usr/local/lib64/python3.6/site-packages/pdftotext-2.1.1-py3.6-linux-x86_64.egg', '/usr/local/lib/python3.6/site-packages', '/usr/lib64/python3.6/dist-packages', '/usr/lib/python3.6/dist-packages', '/home/ec2-user/photonicsolutioncenter/src'] |
Server time: | Thu, 28 Mar 2024 21:42:06 +0000 |
/usr/local/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 | IndexError('list index out of range',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f2e175def28>> |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function ProductDetailView at 0x7f2e16eab400> |
callback_args | () |
callback_kwargs | {'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2e172e7438>> |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
resolver | <URLResolver 'photonicshub.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=apps.main.products.views.site.product_detail.ProductDetailView, args=(), kwargs={'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'}, url_name=detail, app_names=['products'], namespaces=['products']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2e175def28> |
wrapped_callback | <function ProductDetailView at 0x7f2e16eab400> |
/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function ProductDetailView at 0x7f2e16eab400> |
callback_args | () |
callback_kwargs | {'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2e172e7438>> |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
resolver | <URLResolver 'photonicshub.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=apps.main.products.views.site.product_detail.ProductDetailView, args=(), kwargs={'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'}, url_name=detail, app_names=['products'], namespaces=['products']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2e175def28> |
wrapped_callback | <function ProductDetailView at 0x7f2e16eab400> |
/usr/local/lib/python3.6/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
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 'apps.main.products.views.site.product_detail.ProductDetailView'> |
initkwargs | {} |
kwargs | {'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'} |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
self | <apps.main.products.views.site.product_detail.ProductDetailView object at 0x7f2e149aecf8> |
/home/ec2-user/photonicsolutioncenter/src/apps/core/views/base.py
in dispatch
# User is not Authenticated/Login
if not request.user.is_authenticated:
# Login Required for the Account Pages
if self.page_location == PAGE_LOCATION_ACCOUNT:
return self.handle_no_permission()
# on the Site Login is not Required
else:
return super().dispatch(request, *args, **kwargs)...
# User is LogIn
else:
# User is staff redirect to Staff Admin
if request.user.is_staff and self.page_location == PAGE_LOCATION_ACCOUNT:
redirect(reverse('admin:index'))
# set User/Account attributes
Variable | Value |
---|---|
__class__ | <class 'apps.core.views.base.BaseMixin'> |
args | () |
kwargs | {'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'} |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
self | <apps.main.products.views.site.product_detail.ProductDetailView object at 0x7f2e149aecf8> |
/usr/local/lib/python3.6/site-packages/django/views/generic/base.py
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 BaseDetailView.get of <apps.main.products.views.site.product_detail.ProductDetailView object at 0x7f2e149aecf8>> |
kwargs | {'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'} |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
self | <apps.main.products.views.site.product_detail.ProductDetailView object at 0x7f2e149aecf8> |
/usr/local/lib/python3.6/site-packages/django/views/generic/detail.py
in get
context.update(kwargs)
return super().get_context_data(**context)
class BaseDetailView(SingleObjectMixin, View):
"""A base view for displaying a single object."""
def get(self, request, *args, **kwargs):
self.object = self.get_object()...
context = self.get_context_data(object=self.object)
return self.render_to_response(context)
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
template_name_field = None
Variable | Value |
---|---|
args | () |
kwargs | {'slug': 'stoxk-uv-ir-sheet-polarizers-hn38s'} |
request | <WSGIRequest: GET '/products/stoxk-uv-ir-sheet-polarizers-hn38s/'> |
self | <apps.main.products.views.site.product_detail.ProductDetailView object at 0x7f2e149aecf8> |
/home/ec2-user/photonicsolutioncenter/src/apps/main/products/views/site/product_detail.py
in get_object
def get_object(self, queryset=None):
"""
Return the object the view is displaying.Require `slug` argument in the URLconf.
"""
slug = self.kwargs.get(self.slug_url_kwarg)
if slug is not None:
return Product.objects.sdetail(slug=slug)[0]...
else:
raise Http404
Variable | Value |
---|---|
queryset | None |
self | <apps.main.products.views.site.product_detail.ProductDetailView object at 0x7f2e149aecf8> |
slug | 'stoxk-uv-ir-sheet-polarizers-hn38s' |
/usr/local/lib/python3.6/site-packages/django/db/models/query.py
in __getitem__
if hasattr(self.query, 'cursor') and self.query.cursor:
self.query.cursor.close()
def __repr__(self):
return "<%s: %s>" % (self.__class__.__name__, self.query)
def __getitem__(self, k):
return list(self)[k]...
@property
def db(self):
"""Return the database used if this query is executed now."""
return self._db or router.db_for_read(self.model, **self._hints)
Variable | Value |
---|---|
k | 0 |
self | <RawQuerySet: SELECT p.id, p.meta_title, p.meta_description, p.slug, p.name, p.description, p.company_id, p.is_active, p.images, pd.documents, v.video as video FROM (SELECT p.id, p.meta_title, p.meta_description, p.slug, p.name, p.description, p.company_id, p.is_active, array_agg(i.images) AS images FROM products_product AS p INNER JOIN (SELECT i.product_id, json_build_object('detail', COALESCE(i.additional_image_types ->> 'detail', i.image), 'thumb', COALESCE(i.additional_image_types ->> 'thumb', i.image)) AS images FROM products_productimage AS i ORDER BY i.order_id ASC) AS i on p.id = i.product_id WHERE p.slug=stoxk-uv-ir-sheet-polarizers-hn38s GROUP BY p.id) AS p LEFT JOIN (SELECT p.id, array_agg(d.documents) AS documents FROM products_product AS p INNER JOIN (SELECT d.product_id, json_build_object('datasheet', CASE WHEN document_type = 'datasheet' THEN document ELSE NULL END, 'whitepaper', CASE WHEN document_type = 'whitepaper' THEN document ELSE NULL END) AS documents FROM products_productdocument AS d) AS d on p.id = d.product_id GROUP BY p.id) AS pd on p.id = pd.id LEFT JOIN (SELECT v.product_id, COALESCE(channel_url,video_url) AS video FROM products_productvideo AS v) AS v on p.id = v.product_id WHERE p.slug=stoxk-uv-ir-sheet-polarizers-hn38s AND p.is_active=True> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_HOST | 'photonicsolutioncenter.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.80.129.195' |
HTTP_X_FORWARDED_HOST | 'photonicsolutioncenter.com' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '3.80.129.195' |
PATH_INFO | '/products/stoxk-uv-ir-sheet-polarizers-hn38s/' |
QUERY_STRING | '' |
RAW_URI | '/products/stoxk-uv-ir-sheet-polarizers-hn38s/' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '48432' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '3001' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 3001), raddr=('127.0.0.1', 48432)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f2e17297908> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f2e17e25630> |
wsgi.multiprocess | False |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
photonicshub.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['photonicsolutioncenter.com', 'photonicsolutioncenter.com', '142.93.71.29', 'prodev.me', 'localhost'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.User' |
BASE_DIR | '/home/ec2-user/photonicsolutioncenter/src' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_ACCEPT_CONTENT | ['application/json'] |
CELERY_BROKER_CONNECTION_MAX_RETRIES | 0 |
CELERY_BROKER_CONNECTION_TIMEOUT | 1 |
CELERY_BROKER_URL | 'redis://localhost:6379' |
CELERY_MAX_RETRIES | 5 |
CELERY_RESULT_BACKEND | 'redis://localhost:6379' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
CELERY_TASK_SOFT_TIME_LIMIT | 180 |
CELERY_TIMEZONE | 'UTC' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'photonicshub', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'photonicshub_1982d'}} |
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 | [] |
DJANGO_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.forms', 'django.contrib.sites', 'django.contrib.flatpages'] |
DJANGO_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'] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'email-smtp.us-east-1.amazonaws.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'AKIAXDD2XLRFZF6NZUY2' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.TemplatesSetting' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.forms', 'django.contrib.sites', 'django.contrib.flatpages', 'apps.management.accounts', 'apps.management.users', 'apps.main.associations', 'apps.main.categories', 'apps.main.companies', 'apps.main.events', 'apps.main.publications', 'apps.main.products', 'apps.main.rfqs', 'apps.main.jobs', 'apps.marketing.placements', 'apps.marketing.newsletter', 'apps.marketing.urlshortener', 'apps.pages.home', 'apps.pages.contact', 'apps.pages.content', 'apps.notifications'] |
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_DIR | '/home/ec2-user/photonicsolutioncenter/src/media' |
MEDIA_ROOT | '/home/ec2-user/photonicsolutioncenter/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'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_APPS | ['apps.management.accounts', 'apps.management.users', 'apps.main.associations', 'apps.main.categories', 'apps.main.companies', 'apps.main.events', 'apps.main.publications', 'apps.main.products', 'apps.main.rfqs', 'apps.main.jobs', 'apps.marketing.placements', 'apps.marketing.newsletter', 'apps.marketing.urlshortener', 'apps.pages.home', 'apps.pages.contact', 'apps.pages.content', 'apps.notifications'] |
PROJECT_MIDDLEWARE | [] |
ROOT_URLCONF | 'photonicshub.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | True |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'photonicshub.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 | ('/home/ec2-user/photonicsolutioncenter/static/',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_DIR | '/home/ec2-user/photonicsolutioncenter/src/static' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/ec2-user/photonicsolutioncenter/src/templates', '/home/ec2-user/photonicsolutioncenter/src/apps/core/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.media', 'apps.core.context.defaults'], 'libraries': {'file_tags': 'apps.core.templatetags.file_tags', 'form_errors_tags': 'apps.core.templatetags.form_errors_tags', 'get_value_tags': 'apps.core.templatetags.get_value_tags', 'model_name_contains': 'apps.core.templatetags.model_name_contains', 'verbose_name_tags': 'apps.core.templatetags.verbose_name_tags'}}}] |
TEMPLATES_BASE_DIR | '/home/ec2-user/photonicsolutioncenter/src/templates' |
TEMPLATES_CORE_DIR | '/home/ec2-user/photonicsolutioncenter/src/apps/core/templates' |
TEMPLATE_CONTEXT_PROCESSORS | ('apps.core.views.base.header_menu',) |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THIRD_PARTY_APPS | [] |
THIRD_PARTY_MIDDLEWARE | [] |
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 | 'photonicshub.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.