Accessing a translated field requires that the instance has a translation loaded, or a valid translation in current language (kk) loadable from the database
Request Method: | GET |
---|---|
Request URL: | https://2018.zhascamp.kz/kk/programs/ |
Django Version: | 2.2 |
Exception Type: | NoTranslationError |
Exception Value: | Accessing a translated field requires that the instance has a translation loaded, or a valid translation in current language (kk) loadable from the database |
Exception Location: | /usr/local/lib/python3.8/site-packages/hvad/descriptors.py in load_translation, line 31 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.8.17 |
Python Path: | ['/webapp/src', '/usr/local/bin', '/webapp', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] |
Server time: | Бс, 28 Нау 2024 20:46:06 +0000 |
/usr/local/lib/python3.8/site-packages/hvad/descriptors.py
in __get__
def __get__(self, instance, instance_type=None):
if not instance:
if not registry.apps.ready: #pragma: no cover
raise AttributeError('Attribute not available until registry is ready.')
return self.translations_model._meta.get_field(self.name).default
try:
translation = getattr(instance, self.tcache_name)…
except AttributeError:
translation = self.load_translation(instance)
return getattr(translation, self.name)
def __set__(self, instance, value):
try:
Variable | Value |
---|---|
instance | <Program: Алматы (2018)> |
instance_type | <class 'zhascamp.apps.programs.models.Program'> |
self | <hvad.descriptors.TranslatedAttribute object at 0x7fcd3caded90> |
/usr/local/lib/python3.8/site-packages/hvad/descriptors.py
in load_translation
def load_translation(self, instance):
if not hvad_settings.AUTOLOAD_TRANSLATIONS:
raise AttributeError('Field %r is a translatable field, but no translation is loaded '
'and auto-loading is disabled because '
'settings.HVAD[\'AUTOLOAD_TRANSLATIONS\'] is False' % self.name)
try:
translation = get_translation(instance)…
except instance._meta.translations_model.DoesNotExist:
raise self._NoTranslationError('Accessing a translated field requires that '
'the instance has a translation loaded, or a '
'valid translation in current language (%s) '
'loadable from the database' % get_language())
set_cached_translation(instance, translation)
Variable | Value |
---|---|
instance | <Program: Алматы (2018)> |
self | <hvad.descriptors.TranslatedAttribute object at 0x7fcd3caded90> |
/usr/local/lib/python3.8/site-packages/hvad/utils.py
in get_translation
qs = accessor.all()
if qs._result_cache is not None:
# Take advantage of translation cache
for obj in qs:
if obj.language_code == language_code:
return obj
raise accessor.model.DoesNotExist('%r is not translated in %r' % (instance, language_code))
return accessor.get(language_code=language_code)…
def load_translation(instance, language, enforce=False):
''' Get or create a translation.
Depending on enforce argument, the language will serve as a default
or will be enforced by reloading a mismatching translation.
Variable | Value |
---|---|
accessor | <django.db.models.fields.related_descriptors.create_reverse_many_to_one_manager.<locals>.RelatedManager object at 0x7fcd38c70f40> |
instance | <Program: Алматы (2018)> |
language_code | 'kk' |
qs | <QuerySet [<ProgramTranslation: ProgramTranslation object (688)>]> |
/usr/local/lib/python3.8/site-packages/django/db/models/manager.py
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 | {'language_code': 'kk'} |
name | 'get' |
self | <django.db.models.fields.related_descriptors.create_reverse_many_to_one_manager.<locals>.RelatedManager object at 0x7fcd38c70f40> |
/usr/local/lib/python3.8/site-packages/django/db/models/query.py
in get
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:
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)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'language_code': 'kk'} |
num | 0 |
self | <QuerySet [<ProgramTranslation: ProgramTranslation object (688)>]> |
/usr/local/lib/python3.8/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 | NoTranslationError('Accessing a translated field requires that the instance has a translation loaded, or a valid translation in current language (kk) loadable from the database') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fcd3f856c40>> |
request | <WSGIRequest: GET '/kk/programs/'> |
/usr/local/lib/python3.8/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 index at 0x7fcd3acafd30> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fcd3ad0dd60>> |
request | <WSGIRequest: GET '/kk/programs/'> |
resolver | <URLResolver 'zhascamp.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=zhascamp.apps.programs.views.index, args=(), kwargs={}, url_name=programs_index, app_names=[], namespaces=[], route=kk/programs/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fcd3f856c40> |
wrapped_callback | <function index at 0x7fcd3acafd30> |
/usr/local/lib/python3.8/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 index at 0x7fcd3acafd30> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fcd3ad0dd60>> |
request | <WSGIRequest: GET '/kk/programs/'> |
resolver | <URLResolver 'zhascamp.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=zhascamp.apps.programs.views.index, args=(), kwargs={}, url_name=programs_index, app_names=[], namespaces=[], route=kk/programs/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fcd3f856c40> |
wrapped_callback | <function index at 0x7fcd3acafd30> |
/webapp/src/zhascamp/apps/programs/views.py
in index
'items': []}
node_date['items'].append(node_time)
node_time['items'].append({
'time_start': prog.time_start,
'time_end': prog.time_end,
'is_title': prog.is_title,
'subject': prog.subject,…
'title': prog.title,
'speaker': prog.speaker,
'body': prog.body
})
if programs:
Variable | Value |
---|---|
list_program | <QuerySet [<Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, <Program: Алматы (2018)>, '...(remaining elements truncated)...']> |
location | <Locations: Алматы (2018)> |
locations | <ItemQuerySet [<Locations: Алматы (2018)>, <Locations: Астана (2018)>, <Locations: Усть-Каменогорск (2018)>]> |
node_date | {'date': datetime.date(2018, 10, 19), 'items': [{'is_title': False, 'items': [], 'time': '10:00-13:00', 'time_end': datetime.time(13, 0), 'time_start': datetime.time(10, 0)}]} |
node_time | {'is_title': False, 'items': [], 'time': '10:00-13:00', 'time_end': datetime.time(13, 0), 'time_start': datetime.time(10, 0)} |
prog | <Program: Алматы (2018)> |
program_first | <Program: Алматы (2018)> |
programs | [{'date': datetime.date(2018, 10, 19), 'items': [{'is_title': False, 'items': [], 'time': '10:00-13:00', 'time_end': datetime.time(13, 0), 'time_start': datetime.time(10, 0)}]}] |
request | <WSGIRequest: GET '/kk/programs/'> |
str_time | '10:00-13:00' |
subdomain | <Subdomain: 2018> |
/usr/local/lib/python3.8/site-packages/hvad/descriptors.py
in __get__
if not instance:
if not registry.apps.ready: #pragma: no cover
raise AttributeError('Attribute not available until registry is ready.')
return self.translations_model._meta.get_field(self.name).default
try:
translation = getattr(instance, self.tcache_name)
except AttributeError:
translation = self.load_translation(instance)…
return getattr(translation, self.name)
def __set__(self, instance, value):
try:
translation = getattr(instance, self.tcache_name)
except AttributeError:
Variable | Value |
---|---|
instance | <Program: Алматы (2018)> |
instance_type | <class 'zhascamp.apps.programs.models.Program'> |
self | <hvad.descriptors.TranslatedAttribute object at 0x7fcd3caded90> |
/usr/local/lib/python3.8/site-packages/hvad/descriptors.py
in load_translation
if not hvad_settings.AUTOLOAD_TRANSLATIONS:
raise AttributeError('Field %r is a translatable field, but no translation is loaded '
'and auto-loading is disabled because '
'settings.HVAD[\'AUTOLOAD_TRANSLATIONS\'] is False' % self.name)
try:
translation = get_translation(instance)
except instance._meta.translations_model.DoesNotExist:
raise self._NoTranslationError('Accessing a translated field requires that '…
'the instance has a translation loaded, or a '
'valid translation in current language (%s) '
'loadable from the database' % get_language())
set_cached_translation(instance, translation)
return translation
Variable | Value |
---|---|
instance | <Program: Алматы (2018)> |
self | <hvad.descriptors.TranslatedAttribute object at 0x7fcd3caded90> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_HOST | '2018.zhascamp.kz' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '10.0.0.2, 10.0.0.2' |
HTTP_X_FORWARDED_HOST | '_' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_REAL_IP | '10.0.0.2' |
PATH_INFO | '/kk/programs/' |
QUERY_STRING | '' |
RAW_URI | '/kk/programs/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '2018.zhascamp.kz' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/webapp/zhascamp.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fcd38bf0640> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fcd38bf09d0> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
zhascamp.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_STYLE | {'primary-color': '#0E6D81', 'secondary-color': '#14a2c1', 'tertiary-color': '#F2F9FC'} |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMPRESSORS | {'css': 'compressor.css.CssCompressor', 'js': 'compressor.js.JsCompressor'} |
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_FILTERS | ['compressor.filters.template.TemplateFilter', 'compressor.filters.css_default.CssAbsoluteFilter'] |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | True |
COMPRESS_FILTERS | {'css': ['compressor.filters.template.TemplateFilter', 'compressor.filters.css_default.CssAbsoluteFilter'], 'js': ['compressor.filters.template.TemplateFilter']} |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7fcd3d006af0> |
COMPRESS_JS_FILTERS | ['compressor.filters.template.TemplateFilter'] |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/media/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | (('text/less', 'lessc {infile} {outfile}'),) |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/webapp/src/zhascamp/static_media/static_root' |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/media/static/'} |
COMPRESS_URL | '/media/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 | '' |
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', 'HOST': '172.17.0.1', 'NAME': 'zhascamp', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'd.m.Y H:i' |
DATETIME_INPUT_FORMATS | ('%d.%m.%Y %H:%M',) |
DATE_FORMAT | 'd.m.Y' |
DATE_INPUT_FORMATS | ('%d.%m.%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 | '' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | 60 |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
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.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'compressor', 'hvad', 'ordered_model', 'snowpenguin.django.recaptcha2', 'django_q', 'pytils', 'redactor', 'zhascamp.apps.system', 'zhascamp.apps.pages', 'zhascamp.apps.news', 'zhascamp.apps.participants', 'zhascamp.apps.programs', 'zhascamp.apps.speakers', 'zhascamp.apps.photoreports', 'zhascamp.apps.partners', 'zhascamp.apps.trainings', 'zhascamp.apps.accelerators', 'zhascamp.apps.reviews'] |
INTERNAL_IPS | [] |
LANGUAGES | (('ru', 'Russian'), ('kk', 'Қазақша')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LESS_BIN | '' |
LOCALE_PATHS | ('/webapp/src/zhascamp/locale',) |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/webapp/src/static_media/uploads' |
MEDIA_URL | '/media/uploads/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.session.SessionStorage' |
MIDDLEWARE | ['zhascamp.apps.system.middleware.SubdomainMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', '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 |
Q_CLUSTER | {'compress': False, 'cpu_affinity': 1, 'label': 'Django Q', 'name': 'zhascamp', 'queue_limit': 500, 'recycle': 500, 'redis': {'db': 2, 'host': 'redis', 'password': '********************', 'port': 6379}, 'save_limit': 250, 'timeout': 60, 'workers': 8} |
RECAPTCHA_PRIVATE_KEY | '********************' |
RECAPTCHA_PUBLIC_KEY | '********************' |
REDACTOR_OPTIONS | {'lang': 'ru', 'plugins': ['table', 'video', 'fontcolor', 'textdirection']} |
REDACTOR_UPLOAD | 'uploads/' |
REDACTOR_UPLOAD_HANDLER | 'redactor.handlers.UUIDUploader' |
ROOT_URLCONF | 'zhascamp.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 | 'zhascamp.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ('/webapp/src/zhascamp/static',) |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/webapp/src/zhascamp/static_media/static_root' |
STATIC_URL | '/media/static/' |
SUMMERNOTE_CONFIG | {'iframe': True, 'toolbar': [['style', ['style']], ['font', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video', 'hr']], ['view', ['fullscreen', 'codeview']], ['misc', ['print']], ['help', ['help']]]} |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/webapp/src/zhascamp/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'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}] |
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 | 'zhascamp.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.