invalid literal for int() with base 10: 'single-fiber-connector-fixtures'
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:3000/quote/single-fiber-connector-fixtures |
Django Version: | 2.1.8 |
Exception Type: | ValueError |
Exception Value: | invalid literal for int() with base 10: 'single-fiber-connector-fixtures' |
Exception Location: | /usr/local/lib64/python3.6/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 965 |
Python Executable: | /usr/bin/python36 |
Python Version: | 3.6.8 |
Python Path: | ['/home/ec2-user/krelltech/site_app', '/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'] |
Server time: | Fri, 29 Mar 2024 09:45:57 +0000 |
/usr/local/lib64/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 | ValueError("invalid literal for int() with base 10: 'single-fiber-connector-fixtures'",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f8fddb33da0>> |
request | <WSGIRequest: GET '/quote/single-fiber-connector-fixtures'> |
/usr/local/lib64/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 quote_edit_view at 0x7f8fdc911d08> |
callback_args | () |
callback_kwargs | {'id': 'single-fiber-connector-fixtures'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8fdc99a2b0>> |
request | <WSGIRequest: GET '/quote/single-fiber-connector-fixtures'> |
resolver | <URLResolver 'site_app.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=common.views.quote_edit_view, args=(), kwargs={'id': 'single-fiber-connector-fixtures'}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8fddb33da0> |
wrapped_callback | <function quote_edit_view at 0x7f8fdc911d08> |
/usr/local/lib64/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 quote_edit_view at 0x7f8fdc911d08> |
callback_args | () |
callback_kwargs | {'id': 'single-fiber-connector-fixtures'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8fdc99a2b0>> |
request | <WSGIRequest: GET '/quote/single-fiber-connector-fixtures'> |
resolver | <URLResolver 'site_app.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=common.views.quote_edit_view, args=(), kwargs={'id': 'single-fiber-connector-fixtures'}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8fddb33da0> |
wrapped_callback | <function quote_edit_view at 0x7f8fdc911d08> |
/home/ec2-user/krelltech/site_app/common/views.py
in quote_edit_view
'question': question,
'saved': saved
})
def quote_edit_view(request, id):
form = QuoteForm
quote = get_object_or_404(Quote, pk=id)...
categories = Category.objects.all()
options = CategoryOption.objects.all()
product = get_object_or_404(Product, pk=quote.product.pk)
saved = False
if request.method == 'POST':
Variable | Value |
---|---|
form | <class 'common.forms.QuoteForm'> |
id | 'single-fiber-connector-fixtures' |
request | <WSGIRequest: GET '/quote/single-fiber-connector-fixtures'> |
/usr/local/lib64/python3.6/site-packages/django/shortcuts.py
in get_object_or_404
if not hasattr(queryset, 'get'):
klass__name = klass.__name__ if isinstance(klass, type) else klass.__class__.__name__
raise ValueError(
"First argument to get_object_or_404() must be a Model, Manager, "
"or QuerySet, not '%s'." % klass__name
)
try:
return queryset.get(*args, **kwargs)...
except queryset.model.DoesNotExist:
raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
def get_list_or_404(klass, *args, **kwargs):
"""
Variable | Value |
---|---|
args | () |
klass | <class 'common.models.Quote'> |
kwargs | {'pk': 'single-fiber-connector-fixtures'} |
queryset | <QuerySet [<Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, <Quote: CleanTouch™>, <Quote: Polishing Films>, <Quote: Radian™ Bare Fiber Polisher>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: Polishing Films>, <Quote: Scepter™ Fiber Optic Polisher>, <Quote: SpecPro™ Connector Polisher>, <Quote: Precision Rubber Pads & Wear Liners>, <Quote: Polishing Films>, <Quote: Universal Connector Fixtures>, <Quote: Polishing Films>, <Quote: NOVA Optical Polishing System>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, '...(remaining elements truncated)...']> |
/usr/local/lib64/python3.6/site-packages/django/db/models/query.py
in get
return self.query.get_count(using=self.db)
def get(self, *args, **kwargs):
"""
Perform the query and return a single object matching the given
keyword arguments.
"""
clone = self.filter(*args, **kwargs)...
if self.query.can_filter() and not self.query.distinct_fields:
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
Variable | Value |
---|---|
args | () |
kwargs | {'pk': 'single-fiber-connector-fixtures'} |
self | <QuerySet [<Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, <Quote: CleanTouch™>, <Quote: Polishing Films>, <Quote: Radian™ Bare Fiber Polisher>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: Polishing Films>, <Quote: Scepter™ Fiber Optic Polisher>, <Quote: SpecPro™ Connector Polisher>, <Quote: Precision Rubber Pads & Wear Liners>, <Quote: Polishing Films>, <Quote: Universal Connector Fixtures>, <Quote: Polishing Films>, <Quote: NOVA Optical Polishing System>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, '...(remaining elements truncated)...']> |
/usr/local/lib64/python3.6/site-packages/django/db/models/query.py
in filter
return self._chain()
def filter(self, *args, **kwargs):
"""
Return a new QuerySet instance with the args ANDed to the existing
set.
"""
return self._filter_or_exclude(False, *args, **kwargs)...
def exclude(self, *args, **kwargs):
"""
Return a new QuerySet instance with NOT (args) ANDed to the existing
set.
"""
Variable | Value |
---|---|
args | () |
kwargs | {'pk': 'single-fiber-connector-fixtures'} |
self | <QuerySet [<Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, <Quote: CleanTouch™>, <Quote: Polishing Films>, <Quote: Radian™ Bare Fiber Polisher>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: Polishing Films>, <Quote: Scepter™ Fiber Optic Polisher>, <Quote: SpecPro™ Connector Polisher>, <Quote: Precision Rubber Pads & Wear Liners>, <Quote: Polishing Films>, <Quote: Universal Connector Fixtures>, <Quote: Polishing Films>, <Quote: NOVA Optical Polishing System>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, '...(remaining elements truncated)...']> |
/usr/local/lib64/python3.6/site-packages/django/db/models/query.py
in _filter_or_exclude
assert self.query.can_filter(), \
"Cannot filter a query once a slice has been taken."
clone = self._chain()
if negate:
clone.query.add_q(~Q(*args, **kwargs))
else:
clone.query.add_q(Q(*args, **kwargs))...
return clone
def complex_filter(self, filter_obj):
"""
Return a new QuerySet instance with filter_obj added to the filters.
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, <Quote: CleanTouch™>, <Quote: Polishing Films>, <Quote: Radian™ Bare Fiber Polisher>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: Polishing Films>, <Quote: Scepter™ Fiber Optic Polisher>, <Quote: SpecPro™ Connector Polisher>, <Quote: Precision Rubber Pads & Wear Liners>, <Quote: Polishing Films>, <Quote: Universal Connector Fixtures>, <Quote: Polishing Films>, <Quote: NOVA Optical Polishing System>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, '...(remaining elements truncated)...']> |
kwargs | {'pk': 'single-fiber-connector-fixtures'} |
negate | False |
self | <QuerySet [<Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, <Quote: CleanTouch™>, <Quote: Polishing Films>, <Quote: Radian™ Bare Fiber Polisher>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: NOVA™ Bare Fiber Polishing System>, <Quote: Polishing Films>, <Quote: Scepter™ Fiber Optic Polisher>, <Quote: SpecPro™ Connector Polisher>, <Quote: Precision Rubber Pads & Wear Liners>, <Quote: Polishing Films>, <Quote: Universal Connector Fixtures>, <Quote: Polishing Films>, <Quote: NOVA Optical Polishing System>, <Quote: Polishing Films>, <Quote: Polishing Films>, <Quote: NOVA GEO™ PIC Waveguide & Array Polishing System>, '...(remaining elements truncated)...']> |
/usr/local/lib64/python3.6/site-packages/django/db/models/sql/query.py
in add_q
# For join promotion this case is doing an AND for the added q_object
# and existing conditions. So, any existing inner join forces the join
# type to remain inner. Existing outer joins can however be demoted.
# (Consider case where rel_a is LOUTER and rel_a__col=1 is added - if
# rel_a doesn't produce any rows, then the whole condition must fail.
# So, demotion is OK.
existing_inner = {a for a in self.alias_map if self.alias_map[a].join_type == INNER}
clause, _ = self._add_q(q_object, self.used_aliases)...
if clause:
self.where.add(clause, AND)
self.demote_joins(existing_inner)
def _add_q(self, q_object, used_aliases, branch_negated=False,
current_negated=False, allow_joins=True, split_subq=True):
Variable | Value |
---|---|
existing_inner | set() |
q_object | <Q: (AND: ('pk', 'single-fiber-connector-fixtures'))> |
self | <django.db.models.sql.query.Query object at 0x7f8fdb8979e8> |
/usr/local/lib64/python3.6/site-packages/django/db/models/sql/query.py
in _add_q
child, used_aliases, branch_negated,
current_negated, allow_joins, split_subq)
joinpromoter.add_votes(needed_inner)
else:
child_clause, needed_inner = self.build_filter(
child, can_reuse=used_aliases, branch_negated=branch_negated,
current_negated=current_negated, allow_joins=allow_joins,
split_subq=split_subq,...
)
joinpromoter.add_votes(needed_inner)
if child_clause:
target_clause.add(child_clause, connector)
needed_inner = joinpromoter.update_join_types(self)
return target_clause, needed_inner
Variable | Value |
---|---|
allow_joins | True |
branch_negated | False |
child | ('pk', 'single-fiber-connector-fixtures') |
connector | 'AND' |
current_negated | False |
joinpromoter | <django.db.models.sql.query.JoinPromoter object at 0x7f8fdb8976d8> |
q_object | <Q: (AND: ('pk', 'single-fiber-connector-fixtures'))> |
self | <django.db.models.sql.query.Query object at 0x7f8fdb8979e8> |
split_subq | True |
target_clause | <WhereNode: (AND: )> |
used_aliases | {'common_quote'} |
/usr/local/lib64/python3.6/site-packages/django/db/models/sql/query.py
in build_filter
if len(targets) == 1:
col = targets[0].get_col(alias, join_info.final_field)
else:
col = MultiColSource(alias, targets, join_info.targets, join_info.final_field)
else:
col = targets[0].get_col(alias, join_info.final_field)
condition = self.build_lookup(lookups, col, value)...
lookup_type = condition.lookup_name
clause.add(condition, AND)
require_outer = lookup_type == 'isnull' and condition.rhs is True and not current_negated
if current_negated and (lookup_type != 'isnull' or condition.rhs is False) and condition.rhs is not None:
require_outer = True
Variable | Value |
---|---|
alias | 'common_quote' |
allow_joins | True |
allow_many | True |
arg | 'pk' |
branch_negated | False |
can_reuse | {'common_quote'} |
clause | <WhereNode: (AND: )> |
col | Col(common_quote, common.Quote.id) |
current_negated | False |
filter_expr | ('pk', 'single-fiber-connector-fixtures') |
join_info | JoinInfo(final_field=<django.db.models.fields.AutoField: id>, targets=(<django.db.models.fields.AutoField: id>,), opts=<Options for Quote>, joins=['common_quote'], path=[], transform_function=<function Query.setup_joins.<locals>.final_transformer at 0x7f8fdbc92158>) |
join_list | ['common_quote'] |
lookups | [] |
opts | <Options for Quote> |
parts | ['pk'] |
pre_joins | {} |
reffed_expression | False |
reuse_with_filtered_relation | False |
self | <django.db.models.sql.query.Query object at 0x7f8fdb8979e8> |
split_subq | True |
targets | (<django.db.models.fields.AutoField: id>,) |
used_joins | {'common_quote'} |
value | 'single-fiber-connector-fixtures' |
/usr/local/lib64/python3.6/site-packages/django/db/models/sql/query.py
in build_lookup
# and do an Exact lookup against it.
lhs = self.try_transform(lhs, lookup_name)
lookup_name = 'exact'
lookup_class = lhs.get_lookup(lookup_name)
if not lookup_class:
return
lookup = lookup_class(lhs, rhs)...
# Interpret '__exact=None' as the sql 'is NULL'; otherwise, reject all
# uses of None as a query value unless the lookup supports it.
if lookup.rhs is None and not lookup.can_use_none_as_rhs:
if lookup_name not in ('exact', 'iexact'):
raise ValueError("Cannot use None as a query value")
return lhs.get_lookup('isnull')(lhs, True)
Variable | Value |
---|---|
lhs | Col(common_quote, common.Quote.id) |
lookup_class | <class 'django.db.models.lookups.Exact'> |
lookup_name | 'exact' |
lookups | ['exact'] |
rhs | 'single-fiber-connector-fixtures' |
self | <django.db.models.sql.query.Query object at 0x7f8fdb8979e8> |
/usr/local/lib64/python3.6/site-packages/django/db/models/lookups.py
in __init__
class Lookup:
lookup_name = None
prepare_rhs = True
can_use_none_as_rhs = False
def __init__(self, lhs, rhs):
self.lhs, self.rhs = lhs, rhs
self.rhs = self.get_prep_lookup()...
if hasattr(self.lhs, 'get_bilateral_transforms'):
bilateral_transforms = self.lhs.get_bilateral_transforms()
else:
bilateral_transforms = []
if bilateral_transforms:
# Warn the user as soon as possible if they are trying to apply
Variable | Value |
---|---|
lhs | Col(common_quote, common.Quote.id) |
rhs | 'single-fiber-connector-fixtures' |
self | <django.db.models.lookups.Exact object at 0x7f8fdb8974e0> |
/usr/local/lib64/python3.6/site-packages/django/db/models/lookups.py
in get_prep_lookup
else:
self.lhs, self.rhs = new_exprs
def get_prep_lookup(self):
if hasattr(self.rhs, '_prepare'):
return self.rhs._prepare(self.lhs.output_field)
if self.prepare_rhs and hasattr(self.lhs.output_field, 'get_prep_value'):
return self.lhs.output_field.get_prep_value(self.rhs)...
return self.rhs
def get_db_prep_lookup(self, value, connection):
return ('%s', [value])
def process_lhs(self, compiler, connection, lhs=None):
Variable | Value |
---|---|
self | <django.db.models.lookups.Exact object at 0x7f8fdb8974e0> |
/usr/local/lib64/python3.6/site-packages/django/db/models/fields/__init__.py
in get_prep_value
return value
def get_prep_value(self, value):
from django.db.models.expressions import OuterRef
value = super().get_prep_value(value)
if value is None or isinstance(value, OuterRef):
return value
return int(value)...
def contribute_to_class(self, cls, name, **kwargs):
assert not cls._meta.auto_field, "Model %s can't have more than one AutoField." % cls._meta.label
super().contribute_to_class(cls, name, **kwargs)
cls._meta.auto_field = self
Variable | Value |
---|---|
OuterRef | <class 'django.db.models.expressions.OuterRef'> |
__class__ | <class 'django.db.models.fields.AutoField'> |
self | <django.db.models.fields.AutoField: id> |
value | 'single-fiber-connector-fixtures' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | '127.0.0.1:3000' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/quote/single-fiber-connector-fixtures' |
QUERY_STRING | '' |
RAW_URI | '/quote/single-fiber-connector-fixtures' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '36702' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '3000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 3000), raddr=('127.0.0.1', 36702)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f8fdb632780> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f8fdb632470> |
wsgi.multiprocess | False |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
site_app.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_REORDER | ('common', 'flatpages', 'flatblocks') |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
ASSETS_ROOT | '/home/ec2-user/krelltech/site_app/static/assets' |
ASSETS_URL | '/assets/' |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'common.User' |
BASE_DIR | '/home/ec2-user/krelltech/site_app' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
COMPRESS_CSS_COMPRESSOR | 'compressor.css.CssCompressor' |
COMPRESS_CSS_FILTERS | ['compressor.filters.css_default.CssAbsoluteFilter'] |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | True |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7f8fddb74598> |
COMPRESS_JS_COMPRESSOR | 'compressor.js.JsCompressor' |
COMPRESS_JS_FILTERS | ['compressor.filters.jsmin.JSMinFilter'] |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | () |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/home/ec2-user/krelltech/site_app/staticfiles' |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_URL | '/static/' |
COMPRESS_URL_PLACEHOLDER | '/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
CRON_CLASSES | ['common.tasks.ReminderTask'] |
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': 'krelltech', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'krelltech'}} |
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_FORM_EMAIL | 'noreply@krelltech.com' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.mandrillapp.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'KrellTech' |
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.contrib.sites', 'django.contrib.flatpages', 'django.contrib.humanize', 'mptt', 'django_cron', 'common.apps.CommonConfig', 'widget_tweaks', 'django_summernote', 'adminsortable', 'flatblocks', 'compressor', 'image_optimizer', 'admin_reorder', 'django.forms', 'debug_toolbar'] |
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 | {'disable_existing_loggers': False, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}, 'verbose': {'datefmt': '%d/%b/%Y %H:%M:%S', 'format': '[%(asctime)s] %(levelname)s ' '[%(name)s:%(lineno)s] %(message)s'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/ec2-user/krelltech/site_app/site_app/files/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', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'admin_reorder.middleware.ModelAdminReorder'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
OPTIMIZED_IMAGE_METHOD | 'pillow' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'site_app.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'site_app.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 | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/ec2-user/krelltech/site_app/staticfiles' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/ec2-user/krelltech/site_app/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.static', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'common.views.global_variables']}}] |
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 | 'site_app.wsgi.application' |
X_FRAME_OPTIONS | 'ALLOW' |
YEAR_MONTH_FORMAT | 'F Y' |
_PATH | '/home/ec2-user/krelltech/site_app/site_app' |
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.