argument of type 'NoneType' is not iterable
Request Method: | GET |
---|---|
Request URL: | http://megadolls.com/shop_doll_detail/8bb1abac-22e2-4c27-85ab-8dc53fcc51e3/ |
Django Version: | 3.2 |
Exception Type: | TypeError |
Exception Value: | argument of type 'NoneType' is not iterable |
Exception Location: | /usr/local/lib/python3.6/site-packages/django/shortcuts.py, line 136, in resolve_url |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.6.15 |
Python Path: | ['/code', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages'] |
Server time: | Fri, 29 Mar 2024 04:56:25 -0400 |
/code/web_app/views.py
, line 781, in shop_doll_detail
return {'product': shop_product, 'image': shop_product_image, 'image_list': image_sub_table}
# @login_required(login_url='web_login')
def shop_doll_detail(request, slug):
try:
data = shop_detail_data(slug)…
id = data.get('product').id
if request.user.is_authenticated and request.user.is_partner is False:
user_id = request.user.id
data['wishlist_product'] = Wishlist.objects.filter(user_id=user_id, shop_id=id).exists()
recently_visited_item_data = RecentlyVisitedItems.objects.filter(user_id = user_id)
Variable | Value |
---|---|
request | <WSGIRequest: GET '/shop_doll_detail/8bb1abac-22e2-4c27-85ab-8dc53fcc51e3/'> |
slug | '8bb1abac-22e2-4c27-85ab-8dc53fcc51e3' |
/code/web_app/views.py
, line 769, in shop_detail_data
return render(request, 'pages/shop-dress-sets.html', data)
except:
messages.error(request, "Something Went Wrong")
return redirect(request.META.get('HTTP_REFERER'))
def shop_detail_data(slug):
shop_product = ShopProduct.objects.get(is_active=True, slug=slug)…
shop_product_image = ShopProductImage.objects.get(
shop_product__is_active=True, shop_product_id=shop_product.id)
image_sub_table = ShopProductImageSubTable.objects.filter(
shop_product_image__shop_product__is_active=True, shop_product_image_id=shop_product_image.id)
return {'product': shop_product, 'image': shop_product_image, 'image_list': image_sub_table}
Variable | Value |
---|---|
slug | '8bb1abac-22e2-4c27-85ab-8dc53fcc51e3' |
/usr/local/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 | {'is_active': True, 'slug': '8bb1abac-22e2-4c27-85ab-8dc53fcc51e3'} |
name | 'get' |
self | <django.db.models.manager.Manager object at 0x7f896061efd0> |
/usr/local/lib/python3.6/site-packages/django/db/models/query.py
, line 437, in get
clone.query.set_limits(high=limit)
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
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),
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'is_active': True, 'slug': '8bb1abac-22e2-4c27-85ab-8dc53fcc51e3'} |
limit | 21 |
num | 0 |
self | <QuerySet [<ShopProduct: ShopProduct object (1)>, <ShopProduct: ShopProduct object (2)>, <ShopProduct: ShopProduct object (3)>, <ShopProduct: ShopProduct object (4)>, <ShopProduct: ShopProduct object (5)>, <ShopProduct: ShopProduct object (6)>, <ShopProduct: ShopProduct object (7)>, <ShopProduct: ShopProduct object (10)>, <ShopProduct: ShopProduct object (11)>, <ShopProduct: ShopProduct object (13)>, <ShopProduct: ShopProduct object (14)>, <ShopProduct: ShopProduct object (15)>, <ShopProduct: ShopProduct object (16)>, <ShopProduct: ShopProduct object (17)>, <ShopProduct: ShopProduct object (18)>, <ShopProduct: ShopProduct object (19)>, <ShopProduct: ShopProduct object (20)>, <ShopProduct: ShopProduct object (21)>, <ShopProduct: ShopProduct object (22)>, <ShopProduct: ShopProduct object (23)>, '...(remaining elements truncated)...']> |
/usr/local/lib/python3.6/site-packages/django/shortcuts.py
, line 130, in resolve_url
# Handle relative URLs
if isinstance(to, str) and to.startswith(('./', '../')):
return to
# Next try a reverse URL resolution.
try:
return reverse(to, args=args, kwargs=kwargs)…
except NoReverseMatch:
# If this is a callable, re-raise.
if callable(to):
raise
# If this doesn't "feel" like a URL, re-raise.
if '/' not in to and '.' not in to:
Variable | Value |
---|---|
args | () |
kwargs | {} |
to | None |
/usr/local/lib/python3.6/site-packages/django/urls/base.py
, line 86, in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
args | [] |
current_app | None |
kwargs | {} |
prefix | '/' |
resolver | <URLResolver 'megadolls.urls' (None:None) '^/'> |
urlconf | 'megadolls.urls' |
view | None |
viewname | None |
/usr/local/lib/python3.6/site-packages/django/urls/resolvers.py
, line 694, in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
args | () |
kwargs | {} |
lookup_view | None |
lookup_view_s | None |
m | None |
msg | ("Reverse for 'None' not found. 'None' is not a valid view function or pattern " 'name.') |
n | None |
patterns | [] |
possibilities | [] |
self | <URLResolver 'megadolls.urls' (None:None) '^/'> |
/usr/local/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 | TypeError("argument of type 'NoneType' is not iterable",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f897ce22588>> |
request | <WSGIRequest: GET '/shop_doll_detail/8bb1abac-22e2-4c27-85ab-8dc53fcc51e3/'> |
/usr/local/lib/python3.6/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 shop_doll_detail at 0x7f8979ec2ea0> |
callback_args | () |
callback_kwargs | {'slug': '8bb1abac-22e2-4c27-85ab-8dc53fcc51e3'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f89603e76a0>> |
request | <WSGIRequest: GET '/shop_doll_detail/8bb1abac-22e2-4c27-85ab-8dc53fcc51e3/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f897ce22588> |
wrapped_callback | <function shop_doll_detail at 0x7f8979ec2ea0> |
/code/web_app/views.py
, line 823, in shop_doll_detail
if Review.objects.filter(shopproduct_id=id).exists():
avg=Review.objects.filter(shopproduct_id=id).aggregate(Avg('rating')) # for the average rating
data['rating__avg'] = round(avg.get('rating__avg'), 0) # round fuction is used for round value of rating
data['site_url'] = settings.SITE_URL
return render(request, 'pages/doll-detail.html', data)
except Exception as err:
messages.error(request, 'Something Went Wrong')
return redirect(request.META.get('HTTP_REFERER'))…
def web_shop_filter(request):
# try:
collection_id = request.POST.get('collections')
sort_price = request.POST.get('sort')
Variable | Value |
---|---|
request | <WSGIRequest: GET '/shop_doll_detail/8bb1abac-22e2-4c27-85ab-8dc53fcc51e3/'> |
slug | '8bb1abac-22e2-4c27-85ab-8dc53fcc51e3' |
/usr/local/lib/python3.6/site-packages/django/shortcuts.py
, line 41, in redirect
* A URL, which will be used as-is for the redirect location.
Issues a temporary redirect by default; pass permanent=True to issue a
permanent redirect.
"""
redirect_class = HttpResponsePermanentRedirect if permanent else HttpResponseRedirect
return redirect_class(resolve_url(to, *args, **kwargs))…
def _get_queryset(klass):
"""
Return a QuerySet or a Manager.
Duck typing in action: any class with a `get()` method (for
Variable | Value |
---|---|
args | () |
kwargs | {} |
permanent | False |
redirect_class | <class 'django.http.response.HttpResponseRedirect'> |
to | None |
/usr/local/lib/python3.6/site-packages/django/shortcuts.py
, line 136, in resolve_url
try:
return reverse(to, args=args, kwargs=kwargs)
except NoReverseMatch:
# If this is a callable, re-raise.
if callable(to):
raise
# If this doesn't "feel" like a URL, re-raise.
if '/' not in to and '.' not in to:…
raise
# Finally, fall back and assume it's a URL
return to
Variable | Value |
---|---|
args | () |
kwargs | {} |
to | None |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
ALLOWED_HOSTS | 'localhost' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI | '/v2/credentials/c204f114-2c9c-41e7-9820-7525383e8cc7' |
AWS_DEFAULT_REGION | 'us-west-2' |
AWS_EXECUTION_ENV | 'AWS_ECS_FARGATE' |
AWS_REGION | 'us-west-2' |
AWS_S3_CUSTOM_DOMAIN | 'prod.megadolls.com' |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'megadolls-production' |
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DB_ENGINE | 'django.db.backends.postgresql_psycopg2' |
DB_HOST | '34.218.200.82' |
DB_NAME | 'megadolls-prod' |
DB_PASSWORD | '********************' |
DB_PORT | '5432' |
DB_USER | 'postgres' |
DEBUG | 'True' |
DEFAULT_FILE_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
DJANGO_SETTINGS_MODULE | 'megadolls.settings' |
ECS_AGENT_URI | 'http://169.254.170.2/api/3419a59a27094ea7ae1a97de8bb463a0-4048921059' |
ECS_CONTAINER_METADATA_URI | 'http://169.254.170.2/v3/3419a59a27094ea7ae1a97de8bb463a0-4048921059' |
ECS_CONTAINER_METADATA_URI_V4 | 'http://169.254.170.2/v4/3419a59a27094ea7ae1a97de8bb463a0-4048921059' |
EMAIL_HOST_GENERAL | 'school.referral.program@megadolls.com' |
EMAIL_HOST_GENERAL_PASSWORD | '********************' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'paperdolls@megadolls.com' |
FACEBOOK_CLIENT_ID | '733521891165595' |
FACEBOOK_SECRET | '********************' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GOOGLE_CLIENT_ID | '299148627857-i1fd86c3udnutquqablq4s9hdtboqlf3.apps.googleusercontent.com' |
GOOGLE_SECRET | '********************' |
GPG_KEY | '********************' |
HOME | '/root' |
HOSTNAME | 'ip-172-31-11-247.us-west-2.compute.internal' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'megadolls.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_AMZN_TRACE_ID | 'Root=1-66068239-5e667a5e4ab97b3c10cf30d8' |
HTTP_X_FORWARDED_FOR | '44.192.16.116' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
LANG | 'C.UTF-8' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
PATH_INFO | '/shop_doll_detail/8bb1abac-22e2-4c27-85ab-8dc53fcc51e3/' |
PYTHONUNBUFFERED | '1' |
PYTHON_GET_PIP_SHA256 | 'c518250e91a70d7b20cceb15272209a4ded2a0c263ae5776f129e0d9b5674309' |
PYTHON_GET_PIP_URL | 'https://github.com/pypa/get-pip/raw/3cb8888cc2869620f57d5d2da64da38f516078c7/public/get-pip.py' |
PYTHON_PIP_VERSION | '21.2.4' |
PYTHON_SETUPTOOLS_VERSION | '57.5.0' |
PYTHON_VERSION | '3.6.15' |
QUERY_STRING | '' |
REMOTE_ADDR | '172.31.15.96' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SECRET_KEY | '********************' |
SERVER_NAME | 'ip-172-31-11-247.us-west-2.compute.internal' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
SHIP_STATION_PASSWORD | '********************' |
SHIP_STATION_TOKEN | '********************' |
SHIP_STATION_USERNAME | 'fef6714f0bac46fb99dceb5bd46ec4e0' |
SHOW_REFERRAL_RENDER_PAGE | 'True' |
SHOW_SLOPER_RENDER_PAGE | 'False' |
SITE_URL | 'https://megadolls.com/' |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | '********************' |
STRIPE_PUBLIC_KEY | '********************' |
STRIPE_PUBLIC_KEY1 | '********************' |
STRIPE_SECRET_KEY | '********************' |
STRIPE_SECRET_KEY1 | '********************' |
TAX_JAR_TOKEN | '********************' |
TAX_JAR_TOKEN1 | '********************' |
TWILIO_ACCOUNT_SID | 'ACf2943194527447bd79905ff17c2bb8a4' |
TWILIO_AUTH_TOKEN | '********************' |
TWILIO_NUMBER | '+18573747732' |
TZ | 'America/New_York' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | <class 'wsgiref.util.FileWrapper'> |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x7f8960110b00> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
megadolls.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_AUTHENTICATION_METHOD | 'email' |
ACCOUNT_DEFAULT_HTTP_PROTOCOL | 'https' |
ACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_UNIQUE_EMAIL | True |
ACCOUNT_USERNAME_REQUIRED | False |
ACCOUNT_USER_MODEL_USERNAME_FIELD | None |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'adminpanel.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_DEFAULT_ACL | None |
AWS_LOCATION | 'static' |
AWS_S3_CUSTOM_DOMAIN | 'prod.megadolls.com' |
AWS_S3_FILE_OVERWRITE | False |
AWS_S3_OBJECT_PARAMETERS | {'CacheControl': 'max-age=86400'} |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'megadolls-production' |
BASE_DIR | PosixPath('/code') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CRONJOBS | [('* */12 * * *', 'web_app.cron.discontinue_shero_subscription_plan'), ('* */23 * * *', 'web_app.cron.imagine_download_limit_reset')] |
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': '34.218.200.82', 'NAME': 'megadolls-prod', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 100000000 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
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 | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DELIVERY_DAYS | 14 |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | '108.177.98.108' |
EMAIL_HOST_GENERAL | 'school.referral.program@megadolls.com' |
EMAIL_HOST_GENERAL_PASSWORD | '********************' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'paperdolls@megadolls.com' |
EMAIL_PORT | 587 |
EMAIL_PORT_GENERAL | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_crontab', 'adminpanel', 'web_app', 'rest_framework', 'django.contrib.sites', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.facebook', 'storages', 'sloper', 'becomeapartner'] |
INTERNAL_IPS | ['localhost'] |
INVITE_OFFER_DISCOUNT_PERCENTAGE | 40 |
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, 'formatters': {'simple_formatter': {'format': '%(levelname)s - %(message)s'}, 'verbose_formatter': {'format': '%(asctime)s - %(levelname)s - ' '%(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'simple_formatter'}, 'file': {'class': 'logging.FileHandler', 'filename': 'django.log', 'formatter': 'verbose_formatter'}}, 'root': {'handlers': ['console', 'file'], 'level': 'INFO'}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | 'https://prod.megadolls.com/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MESSAGE_TAGS | {20: '#9b9b9b', 25: '#00c1b2', 40: '#ff0000'} |
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', 'megadolls.my_middlewares.DisableClientSideCachingMiddleware', 'megadolls.exception_log_middleware.ExceptionLoggingMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'megadolls.urls' |
SCHOOL_CASHBACK_PERCENTAGE | 20 |
SCHOOL_PROFILE_TEXT | ('We want to sincerely thank you for your willingness to join us in making ' 'this referral program a success! With your help, we will be able to make a ' 'great difference in our school') |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'megadolls.settings' |
SHIP_STATION_PASSWORD | '********************' |
SHIP_STATION_TOKEN | '********************' |
SHIP_STATION_USERNAME | 'fef6714f0bac46fb99dceb5bd46ec4e0' |
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 |
SITE_URL | 'https://megadolls.com/' |
SMS_BACKEND | 'sms.backends.twilio.SmsBackend' |
SOCIALACCOUNT_AUTO_SIGNUP | True |
SOCIALACCOUNT_EMAIL_REQUIRED | True |
SOCIALACCOUNT_EMAIL_VERIFICATION | True |
SOCIALACCOUNT_LOGIN_ON_GET | True |
SOCIALACCOUNT_PROVIDERS | {'facebook': {'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'EXCHANGE_TOKEN': '********************', 'FIELDS': ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_format', 'picture', 'short_name'], 'GRAPH_API_URL': '********************', 'INIT_PARAMS': {'cookie': True}, 'LOCALE_FUNC': 'path.to.callable', 'METHOD': 'oauth2', 'SCOPE': ['email', 'public_profile'], 'SDK_URL': '//connect.facebook.net/{locale}/sdk.js', 'VERIFIED_EMAIL': True, 'VERSION': 'v13.0'}, 'google': {'APP': {'client_id': '853623547566-dhls0ovq94gujg3f8m0t4kbikn0l470n.apps.googleusercontent.com', 'key': '********************', 'secret': '********************'}, 'FIELDS': ['id', 'first_name', 'email', 'last_name', 'name', 'name_format', 'picture', 'short_name'], 'METHOD': 'oauth2'}} |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | '********************' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | 'https://prod.megadolls.com/static/' |
STRIPE_PUBLIC_KEY | '********************' |
STRIPE_SECRET_KEY | '********************' |
STUDENT_REFERRAL_PERCENTAGE | 15 |
TAX_JAR_TOKEN | '********************' |
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', 'megadolls.context_processors.your_context_processor']}}] |
TEMP_DB | 'megadolls-prod' |
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 | 'America/New_York' |
TWILIO_ACCOUNT_SID | 'ACf2943194527447bd79905ff17c2bb8a4' |
TWILIO_AUTH_TOKEN | '********************' |
TWILIO_NUMBER | '+18573747732' |
USE_I18N | True |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'megadolls.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.