'NoneType' object has no attribute 'division_type'
Request Method: | GET |
---|---|
Request URL: | http://uust.ru/mim/ |
Django Version: | 2.2.28 |
Exception Type: | AttributeError |
Exception Value: | 'NoneType' object has no attribute 'division_type' |
Exception Location: | /var/www/prkomm.ugatu.su/subdivisions/views.py in main_view, line 50 |
Python Executable: | /python/envs/django/bin/python |
Python Version: | 3.9.2 |
Python Path: | ['/var/www/prkomm.ugatu.su', '/python/envs/django/bin', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/python/envs/django/lib/python3.9/site-packages', '/var/www/prkomm.ugatu.su'] |
Server time: | Чт, 28 Мар 2024 20:21:51 +0500 |
/python/envs/django/lib/python3.9/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 | AttributeError("'NoneType' object has no attribute 'division_type'") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f1a9fcdd820>> |
request | <WSGIRequest: GET '/mim/'> |
/python/envs/django/lib/python3.9/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 main_view at 0x7f1a9f6890d0> |
callback_args | () |
callback_kwargs | {'subdiv_url': 'mim'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f1a9f5d0070>> |
request | <WSGIRequest: GET '/mim/'> |
resolver | <URLResolver 'mysite.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=subdivisions.views.main_view, args=(), kwargs={'subdiv_url': 'mim'}, url_name=main-view, app_names=[], namespaces=[], route=<slug:subdiv_url>/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f1a9fcdd820> |
wrapped_callback | <function main_view at 0x7f1a9f6890d0> |
/python/envs/django/lib/python3.9/site-packages/django/core/handlers/base.py
in process_exception_by_middleware
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
return a response for this exception, raise it.
"""
for middleware_method in self._exception_middleware:
response = middleware_method(request, exception)…
if response:
return response
raise
def reset_urlconf(sender, **kwargs):
Variable | Value |
---|---|
exception | AttributeError("'NoneType' object has no attribute 'division_type'") |
middleware_method | <bound method ExceptionCatcher.process_exception of <utilities.middleware.ExceptionCatcher object at 0x7f1a9f5e1820>> |
request | <WSGIRequest: GET '/mim/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f1a9fcdd820> |
/var/www/prkomm.ugatu.su/utilities/middleware.py
in process_exception
return error_notification(request, error_code=404)
else:
if request.user.is_authenticated and request.user.is_superuser:
raise exception
else:
return error_notification(request, error_code=500)
else:
raise exception…
class ExceptionLogger(MiddlewareMixin):
'''
Обработчик для записи ошибки в файл: ./errors.log
Логгер определен в mysite.settings
Variable | Value |
---|---|
exception | AttributeError("'NoneType' object has no attribute 'division_type'") |
request | <WSGIRequest: GET '/mim/'> |
self | <utilities.middleware.ExceptionCatcher object at 0x7f1a9f5e1820> |
/python/envs/django/lib/python3.9/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 main_view at 0x7f1a9f6890d0> |
callback_args | () |
callback_kwargs | {'subdiv_url': 'mim'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f1a9f5d0070>> |
request | <WSGIRequest: GET '/mim/'> |
resolver | <URLResolver 'mysite.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=subdivisions.views.main_view, args=(), kwargs={'subdiv_url': 'mim'}, url_name=main-view, app_names=[], namespaces=[], route=<slug:subdiv_url>/) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f1a9fcdd820> |
wrapped_callback | <function main_view at 0x7f1a9f6890d0> |
/var/www/prkomm.ugatu.su/subdivisions/views.py
in main_view
blocks = subdiv_colors.blocks.all()
args['blocks'] = blocks
args.update(add_default_args(request))
if request.path == "/em/":
return redirect(f'https://uust.ru/education/pish')
if request.subdiv.division_type == 'ADEP':…
try:
info = SubdivisionInfo.objects.get(subdivision=request.subdiv)
except Exception:
info = None
args['summary'] = info
return render(request, 'main_start_adep.html', args)
Variable | Value |
---|---|
args | {'ads': <QuerySet []>, 'announcements': <QuerySet []>, 'html_title': '', 'language_code': 'ru', 'news': <QuerySet [<News: Мавлютовские чтения студентов 2021 г.>, <News: 20 мая в Уфу прибыл агитационный поезд>, <News: Торжественный митинг к 80-летию начала Великой Отечественной войны>, <News: Участие курсантов в параде Победы и возложении венков>, <News: Генеральная репетиция парада Победы>, <News: СНТК 2021>]>, 'subdiv': None, 'subdiv_digit': None, 'subdiv_phone_number': '', 'username': <django.contrib.auth.models.AnonymousUser object at 0x7f1a9ecda940>} |
datetime_now | datetime.datetime(2024, 3, 28, 20, 21, 51, 675425, tzinfo=<UTC>) |
request | <WSGIRequest: GET '/mim/'> |
subdiv_colors | None |
subdiv_url | 'mim' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_FORWARDED | 'for=44.200.230.43' |
HTTP_HOST | 'uust.ru' |
HTTP_REFERER | 'http://mim.ugatu.su/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.200.230.43, 44.200.230.43' |
HTTP_X_FORWARDED_HOST | 'uust.ru' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '44.200.230.43' |
HTTP_X_REQUEST_ID | 'fc3ac0d6391d44d0937f726b333f502f' |
PATH_INFO | '/mim/' |
QUERY_STRING | '' |
RAW_URI | '/mim/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'uust.ru' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=5, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f1a9ec71460> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f1a9ba34430> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
mysite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['uust.ru', '193.233.144.40'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/var/www/prkomm.ugatu.su') |
BASE_URL | 'unit' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': '/var/tmp/django_cache', 'OPTIONS': {'CULL_FREQUENCY': 0, 'MAX_ENTRIES': 1000}, 'TIMEOUT': 300}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAPTCHA_CHALLENGE_FUNCT | 'captcha.helpers.math_challenge' |
CKEDITOR_OPTIONS | {'allowedContent': True, 'removePlugins': 'stylesheetparser', 'toolbar_Full': [['Styles', 'Format', 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], ['Image', 'Flash', 'Table', 'HorizontalRule'], ['TextColor', 'BGColor'], ['Smiley', 'sourcearea', 'SpecialChar'], ['Link', 'Unlink', 'Anchor'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'], ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'], ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'], ['Maximize', 'ShowBlocks']]} |
CKEDITOR_UPLOAD_PATH | 'uploads/subdivuploads/' |
CSRF_COOKIE_AGE | None |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken_unit' |
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': '127.0.0.1', 'NAME': 'subdivs', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'admin'}} |
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_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_CSRF_COOKIE_NAME | 'csrftoken' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_SESSION_COOKIE_NAME | 'sessionid' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
ELFINDER_OPTIONS | {'URL': '/unit/media/uploads/subdivuploads/', 'dirMode': '0775', 'fileMode': '0664', 'root': '/var/www/prkomm.ugatu.su/media/uploads/subdivuploads'} |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.ugatu.su' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'noreply@ugatu.su' |
EMAIL_PORT | 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_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | 509 |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 436 |
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_RECAPTCHA_SECRET_KEY | '********************' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'captcha', 'sitetree', 'cked', 'colorfield', 'django_extensions', 'utilities', 'publications', 'subdivisions'] |
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'), ('hy', 'Armenian'), ('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 | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '\n' '{levelname} {asctime} {process:d} ' '{thread:d} {message}', 'style': '{'}}, 'handlers': {'file_errors': {'class': 'logging.FileHandler', 'encoding': 'utf8', 'filename': '/var/www/prkomm.ugatu.su/logs/errors.log', 'formatter': 'verbose', 'level': 'ERROR'}}, 'loggers': {'error_logger': {'handlers': ['file_errors'], 'level': 'DEBUG'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | PosixPath('/var/www/prkomm.ugatu.su/media') |
MEDIA_URL | '/unit/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['utilities.middleware.ExceptionCatcher', 'utilities.middleware.ExceptionLogger', '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', 'django.middleware.common.BrokenLinkEmailsMiddleware', 'subdivisions.middleware.SubdivPermission'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_DIR | PosixPath('/var/www/prkomm.ugatu.su/mysite') |
PROXY_IP_ADDRESS | '193.233.144.114' |
PROXY_URL | 'uust.ru' |
ROOT_URLCONF | 'mysite.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_unit' |
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 | 'mysite.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITETREE_CLS | 'subdivisions.sitetreeapp.CustomSiteTree' |
SITETREE_MODEL_TREE | 'subdivisions.CustomTree' |
SITETREE_MODEL_TREE_ITEM | 'subdivisions.CustomTreeItem' |
STATICFILES_DIRS | [PosixPath('/var/www/prkomm.ugatu.su/mysite/static')] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | PosixPath('/var/www/prkomm.ugatu.su/static') |
STATIC_URL | '/unit/static/' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [PosixPath('/var/www/prkomm.ugatu.su/mysite/templates')], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.i18n'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'admin_tools.template_loaders.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 | 'Asia/Yekaterinburg' |
USER_ALLOWED_IP | ('213.59.151.142', '194.190.227.25', '193.233.144.5', '193.233.146.130', '10.80.24.206', '194.190.227.26', '194.190.227.9', '10.8.10.4', '10.8.10.5', '10.8.10.6', '10.8.10.7', '10.8.10.10') |
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 | 'mysite.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.