MultipleObjectsReturned at /subject/subject_dashboard/B142-040991124-4/

get() returned more than one TbAdolEligibility -- it returned 3!
Request Method: GET
Request URL: http://127.0.0.1:9000/subject/subject_dashboard/B142-040991124-4/
Django Version: 3.1.4
Exception Type: MultipleObjectsReturned
Exception Value:
get() returned more than one TbAdolEligibility -- it returned 3!
Exception Location: /home/flourish/.venvs/flourish/lib/python3.8/site-packages/django/db/models/query.py, line 433, in get
Python Executable: /home/flourish/.venvs/flourish/bin/python3.8
Python Version: 3.8.0
Python Path:
['/home/flourish/source/flourish',
 '/home/flourish/.venvs/flourish/lib/python3.8/site-packages/git/ext/gitdb',
 '/home/flourish/source/flourish',
 '/home/flourish/.venvs/flourish/bin',
 '/usr/lib/python38.zip',
 '/usr/lib/python3.8',
 '/usr/lib/python3.8/lib-dynload',
 '/home/flourish/.venvs/flourish/lib/python3.8/site-packages',
 '/home/flourish/.venvs/flourish/lib/python3.8/site-packages/gitdb/ext/smmap']
Server time: Tue, 27 Jun 2023 13:45:12 +0200

Traceback Switch to copy-and-paste view

Request information

USER

ame

GET

No GET data

POST

No POST data

FILES

No FILES data

Variable Value
csrftoken
'SnM8mFR61bBGpt17oJI0GiG1q6NuvupPuLMctHFAbPndpoQ2Of6A0ie71orCthxZ'
sessionid
'5tnpk1qtcd056pwg8dbo62uwcb57xeqh'

META

Variable Value
CSRF_COOKIE
'SnM8mFR61bBGpt17oJI0GiG1q6NuvupPuLMctHFAbPndpoQ2Of6A0ie71orCthxZ'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip, deflate'
HTTP_ACCEPT_LANGUAGE
'en-GB,en-US;q=0.9,en;q=0.8'
HTTP_CONNECTION
'close'
HTTP_COOKIE
('csrftoken=SnM8mFR61bBGpt17oJI0GiG1q6NuvupPuLMctHFAbPndpoQ2Of6A0ie71orCthxZ; '
 'sessionid=5tnpk1qtcd056pwg8dbo62uwcb57xeqh')
HTTP_HOST
'127.0.0.1:9000'
HTTP_REFERER
'http://flourish-dev.bhp.org.bw/subject/maternal_subject_listboard/?q=1124-4'
HTTP_UPGRADE_INSECURE_REQUESTS
'1'
HTTP_USER_AGENT
('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, '
 'like Gecko) Chrome/114.0.0.0 Safari/537.36')
PATH_INFO
'/subject/subject_dashboard/B142-040991124-4/'
QUERY_STRING
''
RAW_URI
'/subject/subject_dashboard/B142-040991124-4/'
REMOTE_ADDR
'127.0.0.1'
REMOTE_PORT
'55050'
REQUEST_METHOD
'GET'
SCRIPT_NAME
''
SERVER_NAME
'127.0.0.1'
SERVER_PORT
'9000'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SOFTWARE
'gunicorn/20.1.0'
gunicorn.socket
<socket.socket fd=14, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 9000), raddr=('127.0.0.1', 55050)>
wsgi.errors
<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fe2278fe880>
wsgi.file_wrapper
<class 'gunicorn.http.wsgi.FileWrapper'>
wsgi.input
<gunicorn.http.body.Body object at 0x7fe2278fea00>
wsgi.input_terminated
True
wsgi.multiprocess
True
wsgi.multithread
False
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)

Settings

Using settings module flourish.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['127.0.0.1',
 'localhost',
 'flourish-dev.bhp.org.bw',
 '10.113.201.239',
 '192.168.8.102']
APPEND_SLASH
True
APP_NAME
'flourish'
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'auth.User'
BASE_DIR
PosixPath('/home/flourish/source/flourish')
BASE_FORMAT
'https://%(host)s/v1/projects/2/forms/%(form_id)s/%(api)s'
CACHEOPS
{'*.*': {'timeout': 3600},
 'edc_appointments.*': None,
 'flourish_calendar.*': {'ops': 'all', 'timeout': 86400},
 'flourish_caregiver.*': {'ops': 'all', 'timeout': 86400},
 'flourish_child.*': {'ops': 'all', 'timeout': 86400},
 'flourish_child.models.child_appointment.Appointment': None,
 'flourish_follow.*': {'ops': 'all', 'timeout': 86400},
 'flourish_prn.*': {'ops': 'all', 'timeout': 86400}}
CACHEOPS_REDIS
'redis://localhost:6379/1'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CELERY_BROKER_URL
'amqp://localhost'
CELERY_INCLUDE
['flourish_child.utils', 'edc_odk.tasks']
CELERY_TIMEZONE
'Africa/Gaborone'
CELLPHONE_REGEX
'^[7]{1}[12345678]{1}[0-9]{6}$'
CONFIG_FILE
'flourish.ini'
CONFIG_PATH
'/etc/flourish/flourish.ini'
COUNTRY
'botswana'
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
DASHBOARD_BASE_TEMPLATES
{'child_listboard_template': 'flourish_dashboard/child_subject/listboard.html',
 'child_screening_listboard_template': 'flourish_dashboard/child_subject/screening_listboard.html',
 'child_subject_dashboard_template': 'flourish_dashboard/child_subject/dashboard.html',
 'dashboard_base_template': 'flourish/base.html',
 'data_manager_listboard_template': 'edc_data_manager/listboard.html',
 'export_listboard_template': 'flourish_export/listboard.html',
 'flourish_follow_appt_listboard_template': 'flourish_follow/appointments_windows_listboards.html',
 'flourish_follow_book_listboard_template': 'flourish_follow/book_listboard.html',
 'flourish_follow_booking_listboard_template': 'flourish_follow/bookings_listboard.html',
 'flourish_follow_listboard_template': 'flourish_follow/follow_listboard.html',
 'listboard_base_template': 'flourish/base.html',
 'maternal_dataset_listboard_template': 'flourish_dashboard/maternal_dataset/maternal_listboard.html',
 'maternal_screening_listboard_template': 'flourish_dashboard/screening/maternal_listboard.html',
 'missing_crf_report_template': 'flourish_reports/missing_crfs/missing_crf_report.html',
 'odk_listboard_template': 'edc_odk/odk_forms/listboard.html',
 'pre_flourish_caragiver_locator_listboard_template': 'pre_flourish/caregiver_locator_listboard.html',
 'pre_flourish_child_dashboard_template': 'pre_flourish/child/dashboard.html',
 'pre_flourish_child_listboard_template': 'pre_flourish/child/child_listboard.html',
 'pre_flourish_follow_appt_listboard_template': 'pre_flourish_follow/appointments_windows_listboards.html',
 'pre_flourish_follow_book_listboard_template': 'pre_flourish_follow/book_listboard.html',
 'pre_flourish_follow_booking_listboard_template': 'pre_flourish_follow/bookings_listboard.html',
 'pre_flourish_follow_listboard_template': 'pre_flourish_follow/follow_listboard.html',
 'pre_flourish_screening_listboard_template': 'pre_flourish/caregiver/listboard.html',
 'pre_flourish_subject_dashboard_template': 'pre_flourish/caregiver/dashboard.html',
 'pre_flourish_subject_listboard_template': 'pre_flourish/caregiver/subject_listboard.html',
 'senaite_result_listboard_template': 'flourish_dashboard/result_listboard.html',
 'subject_dashboard_template': 'flourish_dashboard/maternal_subject/dashboard.html',
 'subject_listboard_template': 'flourish_dashboard/maternal_subject/listboard.html'}
DASHBOARD_URL_NAMES
{'child_dashboard_url': 'flourish_dashboard:child_dashboard_url',
 'child_listboard_url': 'flourish_dashboard:child_listboard_url',
 'child_result_listboard_url': 'flourish_dashboard:child_result_listboard_url',
 'child_screening_listboard_url': 'flourish_dashboard:child_screening_listboard_url',
 'data_manager_listboard_url': 'edc_data_manager:data_manager_listboard_url',
 'export_listboard_url': 'flourish_export:export_listboard_url',
 'flourish_calendar_url': 'flourish_calendar:calendar',
 'flourish_follow_appt_listboard_url': 'flourish_follow:flourish_follow_appt_listboard_url',
 'flourish_follow_book_listboard_url': 'flourish_follow:flourish_follow_book_listboard_url',
 'flourish_follow_booking_listboard_url': 'flourish_follow:flourish_follow_booking_listboard_url',
 'flourish_follow_listboard_url': 'flourish_follow:flourish_follow_listboard_url',
 'maternal_dataset_listboard_url': 'flourish_dashboard:maternal_dataset_listboard_url',
 'maternal_screening_listboard_url': 'flourish_dashboard:maternal_screening_listboard_url',
 'missing_crf_report_url': 'flourish_reports:missing_crf_report_url',
 'odk_listboard_url': 'edc_odk:odk_listboard_url',
 'pre_flourish_caregiver_locator_listboard_url': 'pre_flourish:pre_flourish_caregiver_locator_listboard_url',
 'pre_flourish_child_dashboard_url': 'pre_flourish:pre_flourish_child_dashboard_url',
 'pre_flourish_child_listboard_url': 'pre_flourish:pre_flourish_child_listboard_url',
 'pre_flourish_consent_listboard_url': 'pre_flourish:pre_flourish_consent_listboard_url',
 'pre_flourish_follow_appt_listboard_url': 'pre_flourish_follow:pre_flourish_follow_appt_listboard_url',
 'pre_flourish_follow_book_listboard_url': 'pre_flourish_follow:pre_flourish_follow_book_listboard_url',
 'pre_flourish_follow_booking_listboard_url': 'pre_flourish_follow:pre_flourish_follow_booking_listboard_url',
 'pre_flourish_follow_listboard_url': 'pre_flourish_follow:pre_flourish_follow_listboard_url',
 'pre_flourish_maternal_dataset_listboard_url': 'pre_flourish:pre_flourish_maternal_dataset_listboard_url',
 'pre_flourish_screening_listboard_url': 'pre_flourish:pre_flourish_screening_listboard_url',
 'pre_flourish_subject_dashboard_url': 'pre_flourish:pre_flourish_subject_dashboard_url',
 'senaite_result_listboard_url': 'flourish_dashboard:caregiver_result_listboard_url',
 'subject_dashboard_url': 'flourish_dashboard:subject_dashboard_url',
 'subject_listboard_url': 'flourish_dashboard:subject_listboard_url'}
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.mysql',
             'HOST': '127.0.0.1',
             'NAME': 'flourish',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '3306',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'root'}}
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',
 '%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
'Y-m-d'
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']
DB_NAME
'flourish'
DB_PASSWORD
'********************'
DB_USER
'root'
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
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'se-dmc@bhp.org.bw'
DEFAULT_HASHING_ALGORITHM
'sha256'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_STUDY_SITE
40
DEFAULT_TABLESPACE
''
DEVICE_ID
'99'
DEVICE_ROLE
'CentralServer'
DISALLOWED_USER_AGENTS
[]
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'mail.bhp.org.bw'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'se-dmc'
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'
ETC_DIR
'/etc/flourish'
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'
HOLIDAY_FILE
'/home/flourish/source/flourish/holidays.csv'
HOST
'127.0.0.1'
IGNORABLE_404_URLS
[]
INDEX_PAGE
'flourish.bhp.org.bw'
INSTALLED_APPS
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_crypto_fields.apps.AppConfig',
 'django_q',
 'django_extensions',
 'crispy_forms',
 'multiselectfield',
 'edc_action_item.apps.AppConfig',
 'edc_consent.apps.AppConfig',
 'edc_dashboard.apps.AppConfig',
 'edc_device.apps.AppConfig',
 'edc_identifier.apps.AppConfig',
 'edc_lab.apps.AppConfig',
 'edc_model_admin.apps.AppConfig',
 'edc_navbar.apps.AppConfig',
 'edc_prn.apps.AppConfig',
 'edc_registration.apps.AppConfig',
 'edc_reference.apps.AppConfig',
 'edc_subject_dashboard.apps.AppConfig',
 'edc_visit_schedule.apps.AppConfig',
 'edc_call_manager.apps.AppConfig',
 'edc_metadata_rules.apps.AppConfig',
 'flourish_export.apps.AppConfig',
 'flourish_dashboard.apps.AppConfig',
 'flourish_prn.apps.AppConfig',
 'flourish_caregiver.apps.AppConfig',
 'flourish_child.apps.AppConfig',
 'flourish_follow.apps.AppConfig',
 'pre_flourish_follow.apps.AppConfig',
 'flourish_reports.apps.AppConfig',
 'flourish_metadata_rules.apps.AppConfig',
 'flourish_labs.apps.AppConfig',
 'flourish_reference.apps.AppConfig',
 'flourish_visit_schedule.apps.AppConfig',
 'flourish.apps.EdcAppointmentAppConfig',
 'flourish.apps.EdcBaseAppConfig',
 'flourish.apps.EdcDataManagerAppConfig',
 'flourish.apps.EdcFacilityAppConfig',
 'flourish.apps.EdcLocatorAppConfig',
 'flourish.apps.EdcMetadataAppConfig',
 'flourish.apps.EdcOdkAppConfig',
 'flourish.apps.EdcProtocolAppConfig',
 'flourish.apps.EdcVisitTrackingAppConfig',
 'flourish.apps.EdcTimepointAppConfig',
 'flourish.apps.EdcSenaiteInterfaceAppConfig',
 'pre_flourish.apps.AppConfig',
 'flourish_calendar.apps.AppConfig',
 'flourish.apps.AppConfig',
 'rest_framework',
 'rest_framework.authtoken',
 'cacheops']
INTERNAL_IPS
[]
LANGUAGES
(('tn', 'Setswana'), ('en', 'English'))
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
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'home_url'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MEDIA_ROOT
'/home/flourish/source/flourish/media'
MEDIA_URL
'/media/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.sites.middleware.CurrentSiteMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'edc_dashboard.middleware.DashboardMiddleware',
 'edc_subject_dashboard.middleware.DashboardMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
ODK_CONFIGURATION
{'OPTIONS': {'read_default_file': '/etc/odk/odk.cnf'}}
ODK_SERVER_TYPE
'central'
PARENT_REFERENCE_MODEL1
''
PARENT_REFERENCE_MODEL2
''
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PORT
'3306'
PREPEND_WWW
False
REVIEWER_SITE_ID
1
ROOT_URLCONF
'flourish.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
SENAITE_CONFIGURATION
{'OPTIONS': {'read_default_file': '/etc/edc_senaite_interface/senaite.conf'}}
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
'flourish.settings'
SHORT_DATETIME_FORMAT
'Y-m-d h:m'
SHORT_DATE_FORMAT
'Y-m-d'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SITE_ID
40
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
'/home/flourish/source/flourish/flourish/static'
STATIC_URL
'/static/'
TELEPHONE_REGEX
'^[2-8]{1}[0-9]{6}$'
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']}}]
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
'Africa/Gaborone'
USE_I18N
True
USE_L10N
False
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'flourish.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.