Field 'id' expected a number but got 'index.html'.
Request Method: | GET |
---|---|
Request URL: | https://bitedev.com.au/blog/index.html |
Django Version: | 3.1.8 |
Exception Type: | ValueError |
Exception Value: | Field 'id' expected a number but got 'index.html'. |
Exception Location: | /home/ubuntu/env/lib/python3.8/site-packages/django/db/models/fields/__init__.py, line 1776, in get_prep_value |
Python Executable: | /home/ubuntu/env/bin/python3 |
Python Version: | 3.8.10 |
Python Path: | ['/home/ubuntu/server', '/home/ubuntu/env/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/ubuntu/env/lib/python3.8/site-packages', '/home/server/bite'] |
Server time: | Thu, 28 Mar 2024 21:46:46 +1030 |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/fields/__init__.py
, line 1774, in get_prep_value
return validators_
def get_prep_value(self, value):
value = super().get_prep_value(value)
if value is None:
return None
try:
return int(value)…
except (TypeError, ValueError) as e:
raise e.__class__(
"Field '%s' expected a number but got %r." % (self.name, value),
) from e
def get_internal_type(self):
Variable | Value |
---|---|
__class__ | <class 'django.db.models.fields.IntegerField'> |
self | <django.db.models.fields.AutoField: id> |
value | 'index.html' |
/home/ubuntu/env/lib/python3.8/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 | ValueError("Field 'id' expected a number but got 'index.html'.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f8fbfa9d4f0>> |
request | <WSGIRequest: GET '/blog/index.html'> |
/home/ubuntu/env/lib/python3.8/site-packages/django/core/handlers/base.py
, line 181, 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 landing_blog_single at 0x7f8fbea50e50> |
callback_args | () |
callback_kwargs | {'pk': 'index.html'} |
middleware_method | <function CorsMiddleware.process_view at 0x7f8fbf8a18b0> |
request | <WSGIRequest: GET '/blog/index.html'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8fbfa9d4f0> |
wrapped_callback | <function landing_blog_single at 0x7f8facd2dd30> |
/home/ubuntu/env/lib/python3.8/site-packages/sentry_sdk/integrations/django/views.py
, line 84, in sentry_wrapped_callback
# this isn't necessary for async views since that runs on main
if sentry_scope.profile is not None:
sentry_scope.profile.update_active_thread_id()
with hub.start_span(
op=OP.VIEW_RENDER, description=request.resolver_match.view_name
):
return callback(request, *args, **kwargs)…
return sentry_wrapped_callback
Variable | Value |
---|---|
args | () |
callback | <function landing_blog_single at 0x7f8fbea50e50> |
hub | <sentry_sdk.hub.Hub object at 0x7f8fa9cf33a0> |
kwargs | {'pk': 'index.html'} |
request | <WSGIRequest: GET '/blog/index.html'> |
sentry_scope | <Scope id=0x7f8fad256dc0 name=wsgi> |
/home/ubuntu/server/landing/views/blog.py
, line 16, in landing_blog_single
context = {
'blogs': blogs,
}
return render(request, 'blog.html', context)
def landing_blog_single(request, pk):
blog = LandingPageBlogs.objects.get(id=pk)…
context = {
'blog': blog,
}
return render(request, 'blog_single.html', context)
Variable | Value |
---|---|
pk | 'index.html' |
request | <WSGIRequest: GET '/blog/index.html'> |
/home/ubuntu/env/lib/python3.8/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 | {'id': 'index.html'} |
name | 'get' |
self | <django.db.models.manager.Manager object at 0x7f8fbd2b0c70> |
/home/ubuntu/env/lib/python3.8/site-packages/nplusone/core/signals.py
, line 23, in wrapped
def get_worker(*args, **kwargs):
return blinker.ANY
def signalify(signal, func, parser=None, **context):
@functools.wraps(func)
def wrapped(*args, **kwargs):
ret = func(*args, **kwargs)…
signal.send(
get_worker(),
args=args,
kwargs=kwargs,
ret=ret,
context=context,
Variable | Value |
---|---|
args | (<QuerySet [<LandingPageBlogs: LandingPageBlogs object (1)>]>,) |
context | {} |
func | <function QuerySet.get at 0x7f8fcaed19d0> |
kwargs | {'id': 'index.html'} |
parser | <function parse_get at 0x7f8fc14abaf0> |
signal | <blinker.base.Signal object at 0x7f8fc14a5bb0> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/query.py
, line 418, 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._chain() if self.query.combinator else self.filter(*args, **kwargs)…
if self.query.can_filter() and not self.query.distinct_fields:
clone = clone.order_by()
limit = None
if not clone.query.select_for_update or connections[clone.db].features.supports_select_for_update_with_limit:
limit = MAX_GET_RESULTS
clone.query.set_limits(high=limit)
Variable | Value |
---|---|
args | () |
kwargs | {'id': 'index.html'} |
self | <QuerySet [<LandingPageBlogs: LandingPageBlogs object (1)>]> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/query.py
, line 942, in filter
def filter(self, *args, **kwargs):
"""
Return a new QuerySet instance with the args ANDed to the existing
set.
"""
self._not_support_combined_queries('filter')
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 | {'id': 'index.html'} |
self | <QuerySet [<LandingPageBlogs: LandingPageBlogs object (1)>]> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/query.py
, line 962, in _filter_or_exclude
"Cannot filter a query once a slice has been taken."
clone = self._chain()
if self._defer_next_filter:
self._defer_next_filter = False
clone._deferred_filter = negate, args, kwargs
else:
clone._filter_or_exclude_inplace(negate, *args, **kwargs)…
return clone
def _filter_or_exclude_inplace(self, negate, *args, **kwargs):
if negate:
self._query.add_q(~Q(*args, **kwargs))
else:
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<LandingPageBlogs: LandingPageBlogs object (1)>]> |
kwargs | {'id': 'index.html'} |
negate | False |
self | <QuerySet [<LandingPageBlogs: LandingPageBlogs object (1)>]> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/query.py
, line 969, in _filter_or_exclude_inplace
clone._filter_or_exclude_inplace(negate, *args, **kwargs)
return clone
def _filter_or_exclude_inplace(self, negate, *args, **kwargs):
if negate:
self._query.add_q(~Q(*args, **kwargs))
else:
self._query.add_q(Q(*args, **kwargs))…
def complex_filter(self, filter_obj):
"""
Return a new QuerySet instance with filter_obj added to the filters.
filter_obj can be a Q object or a dictionary of keyword lookup
Variable | Value |
---|---|
args | () |
kwargs | {'id': 'index.html'} |
negate | False |
self | <QuerySet [<LandingPageBlogs: LandingPageBlogs object (1)>]> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1358, 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 build_where(self, filter_expr):
return self.build_filter(filter_expr, allow_joins=False)[0]
Variable | Value |
---|---|
existing_inner | set() |
q_object | <Q: (AND: ('id', 'index.html'))> |
self | <django.db.models.sql.query.Query object at 0x7f8fad0143a0> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1377, in _add_q
connector = q_object.connector
current_negated = current_negated ^ q_object.negated
branch_negated = branch_negated or q_object.negated
target_clause = self.where_class(connector=connector,
negated=q_object.negated)
joinpromoter = JoinPromoter(q_object.connector, len(q_object.children), current_negated)
for child in q_object.children:
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, check_filterable=check_filterable,
)
joinpromoter.add_votes(needed_inner)
if child_clause:
Variable | Value |
---|---|
allow_joins | True |
branch_negated | False |
check_filterable | True |
child | ('id', 'index.html') |
connector | 'AND' |
current_negated | False |
joinpromoter | <django.db.models.sql.query.JoinPromoter object at 0x7f8fac5a83d0> |
q_object | <Q: (AND: ('id', 'index.html'))> |
self | <django.db.models.sql.query.Query object at 0x7f8fad0143a0> |
split_subq | True |
target_clause | <WhereNode: (AND: )> |
used_aliases | {'landing_landingpageblogs'} |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1319, in build_filter
if len(targets) == 1:
col = self._get_col(targets[0], join_info.final_field, alias)
else:
col = MultiColSource(alias, targets, join_info.targets, join_info.final_field)
else:
col = self._get_col(targets[0], join_info.final_field, alias)
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 | 'landing_landingpageblogs' |
allow_joins | True |
allow_many | True |
arg | 'id' |
branch_negated | False |
can_reuse | {'landing_landingpageblogs'} |
check_filterable | True |
clause | <WhereNode: (AND: )> |
col | Col(landing_landingpageblogs, landing.LandingPageBlogs.id) |
current_negated | False |
filter_expr | ('id', 'index.html') |
join_info | JoinInfo(final_field=<django.db.models.fields.AutoField: id>, targets=(<django.db.models.fields.AutoField: id>,), opts=<Options for LandingPageBlogs>, joins=['landing_landingpageblogs'], path=[], transform_function=<function Query.setup_joins.<locals>.final_transformer at 0x7f8facd2df70>) |
join_list | ['landing_landingpageblogs'] |
lookups | [] |
opts | <Options for LandingPageBlogs> |
parts | ['id'] |
pre_joins | {} |
reffed_expression | False |
reuse_with_filtered_relation | False |
self | <django.db.models.sql.query.Query object at 0x7f8fad0143a0> |
split_subq | True |
targets | (<django.db.models.fields.AutoField: id>,) |
used_joins | {'landing_landingpageblogs'} |
value | 'index.html' |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1165, 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(landing_landingpageblogs, landing.LandingPageBlogs.id) |
lookup_class | <class 'django.db.models.lookups.Exact'> |
lookup_name | 'exact' |
lookups | [] |
rhs | 'index.html' |
self | <django.db.models.sql.query.Query object at 0x7f8fad0143a0> |
transforms | [] |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/lookups.py
, line 24, 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(landing_landingpageblogs, landing.LandingPageBlogs.id) |
rhs | 'index.html' |
self | <django.db.models.lookups.Exact object at 0x7f8fad1e8e20> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/lookups.py
, line 76, in get_prep_lookup
else:
self.lhs, self.rhs = new_exprs
def get_prep_lookup(self):
if hasattr(self.rhs, 'resolve_expression'):
return self.rhs
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 0x7f8fad1e8e20> |
/home/ubuntu/env/lib/python3.8/site-packages/django/db/models/fields/__init__.py
, line 1776, in get_prep_value
def get_prep_value(self, value):
value = super().get_prep_value(value)
if value is None:
return None
try:
return int(value)
except (TypeError, ValueError) as e:
raise e.__class__(…
"Field '%s' expected a number but got %r." % (self.name, value),
) from e
def get_internal_type(self):
return "IntegerField"
Variable | Value |
---|---|
__class__ | <class 'django.db.models.fields.IntegerField'> |
self | <django.db.models.fields.AutoField: id> |
value | 'index.html' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'bitedev.com.au' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.80.129.195' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '3.80.129.195' |
PATH_INFO | '/blog/index.html' |
QUERY_STRING | '' |
RAW_URI | '/blog/index.html' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'bitedev.com.au' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=14, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f8fbcd08bb0> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f8fa9cf37c0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
bite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [('Alexander', 'alexander@frothapps.com.au')] |
ADMIN_PAYOUT_ID | 'acct_1Ju8Rn2Q5ucsz8AL' |
ALLOWED_HOSTS | ['thebitenetwork.com.au', '127.0.0.1', 'localhost', '54.79.201.55', '*', 'getbite.com.au'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_DEFAULT_ACL | 'public-read' |
AWS_LOCATION | 'static' |
AWS_S3_CUSTOM_DOMAIN | 'dtvm3z7wq40un.cloudfront.net' |
AWS_S3_OBJECT_PARAMETERS | {'CacheControl': 'max-age=86400'} |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'thebitenetwork' |
BASE_DIR | '/home/ubuntu/server/thebitenetwork' |
BITE_SERVICE_CHARGE | Decimal('2.5') |
BITE_SERVICE_CHARGE_10KM | 1.5 |
BITE_SERVICE_CHARGE_3KM | 1.5 |
BITE_SERVICE_CHARGE_5KM | 1.5 |
BITE_SERVICE_CHARGE_7KM | 1.5 |
BITE_SERVICE_CHARGE_9KM | 1.5 |
BOOTSTRAP4 | {'include_jquery': True} |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CANCEL_DELIVERY_ENDPOINT | 'https://openapi.doordash.com/drive/v1/deliveries/' |
CANCEL_DELIVERY_ENDPOINT_EXTENSION | '/cancel' |
CORS_ALLOW_ALL_ORIGINS | True |
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.contrib.gis.db.backends.postgis', 'HOST': 'thebitenetwork-new.c18i2u6arbdk.ap-southeast-2.rds.amazonaws.com', 'NAME': 'thebitenetwork', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'thebitenetwork'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | None |
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_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
DEFAULT_FROM_EMAIL | 'Hospa Group Pty LTD <no-reply@hospa.com.au>' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DOORDASH_API_BASE | '********************' |
DOORDASH_BASE_KM | 3.0 |
DOORDASH_BASE_RATE | 10.99 |
DOORDASH_ESTIMATES_ENDPOINT | 'https://openapi.doordash.com/drive/v1/estimates' |
DOORDASH_PER_KM_RATE | 1.0 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
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 |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 26214400 |
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_API_KEY | '********************' |
GOOGLE_DELIVERY_MATRIX_API_KEY | '********************' |
GOOGLE_GEOCODER_API_KEY | '********************' |
GOOGLE_MAPS_API_KEY | '********************' |
HUBSTER_API_BASE | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django_extensions', 'django.contrib.contenttypes', 'thebitenetwork.apps.thebitenetworkConfig', 'whitelabelweb.apps.WhitelabelwebConfig', 'driverrequests.apps.DriverrequestsConfig', 'admin_app', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.gis', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'oauth2_provider', 'rest_framework', 'social_django', 'rest_framework_social_oauth2', 'rest_framework.authtoken', 'bootstrap4', 'bootstrap_datepicker_plus', 'mapwidgets', 'corsheaders', 'storages', 'debug_toolbar', 'driverapp.apps.DriverappConfig', 'address', 'deliverect', 'colorfield', 'csvexport', 'wkhtmltopdf', 'security.apps.SecurityConfig', 'sorl.thumbnail', 'nplusone.ext.django', 'landing.apps.LandingConfig'] |
INTERNAL_IPS | ['127.0.0.1', '127.0.0.1:8000', '192.168.8.174', '192.168.8.174:8000', 'bitedev.com.au'] |
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 | '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 |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'dev_file': {'class': 'logging.FileHandler', 'filename': '/home/ubuntu/server/thebitenetwork/dev.log', 'level': 'DEBUG'}}, 'loggers': {'dev': {'handlers': ['dev_file'], 'level': 'DEBUG', 'propagate': False}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/restaurant/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MAILCHIMP_API_KEY | '********************' |
MANAGERS | [] |
MAP_WIDGETS | {'GOOGLE_MAP_API_KEY': '********************'} |
MEDIA_ROOT | '' |
MEDIA_URL | 'https://dtvm3z7wq40un.cloudfront.net/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'corsheaders.middleware.CorsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'nplusone.ext.django.NPlusOneMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NPLUSONE_LOGGER | <Logger nplusone (WARNING)> |
NPLUSONE_LOG_LEVEL | 30 |
NUMBER_GROUPING | 0 |
OAUTH_CLIENT_ID | 'GJXCqBPhlN1tkLVFvjrzjyOyTOyLwKLJE6qCIvui' |
OAUTH_CLIENT_SECRET | '********************' |
OAUTH_SERVER_URL | '' |
OAUTH_URL | 'https://bitedev.com.au/o/token/' |
ONESIGNAL_APP_ID | '3f2c272b-0816-45c0-b055-dc92ee460a5b' |
ONESIGNAL_REST_KEY | '********************' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_CODE_EXPIRY | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PHONE_NUMBER_COUNTRY | 'AU' |
PREPEND_WWW | False |
PRODUCTION | False |
PUBLIC_MEDIA_LOCATION | 'media' |
RESTAURANT_ONESIGNAL_APP_ID | 'c6887f8e-212b-43e4-8e71-a71d306a0e21' |
RESTAURANT_ONESIGNAL_REST_KEY | '********************' |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication'], 'DEFAULT_THROTTLE_CLASSES': ['rest_framework.throttling.AnonRateThrottle', 'rest_framework.throttling.UserRateThrottle'], 'DEFAULT_THROTTLE_RATES': {'anon': '70/minute', 'driver_location': '15/minute', 'user': '70/minute', 'user_hour': '7200/hour', 'user_min': '120/minute'}} |
ROOT_URLCONF | 'bite.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' |
SERVICE_FEE_BASE | 1.0 |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'driver_registration' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.file' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | True |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'bite.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SSL_VALIDATION_ROOT | '/home/ubuntu/server/thebitenetwork/.well-known' |
SSL_VALIDATION_URL | '/.well-known/pki-validation/' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
STATIC_ROOT | 'https://dtvm3z7wq40un.cloudfront.net/staticfiles/' |
STATIC_URL | 'https://dtvm3z7wq40un.cloudfront.net/staticfiles/' |
STRIPE_API_KEY | '********************' |
STRIPE_PUBLISHABLE_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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'], 'string_if_invalid': '!!! INVALID VARIABLE !!!'}}] |
TESTING_ON_BRENDANS_MACHINE | False |
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 | 'Australia/Adelaide' |
TWILIO_ACCOUNT_SID | 'AC2021e9aa873de03339a17f2eae5ad7f0' |
TWILIO_AUTH_TOKEN | '********************' |
TWILIO_NUMBER | '+19093402483' |
USE_I18N | True |
USE_L10N | True |
USE_S3 | True |
USE_THE_REAL_COURIER_SERVER | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | True |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'bite.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.