Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/person
Django Version: 3.0.5
Python Version: 3.7.6
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.humanize',
'guardian',
'rules.apps.AutodiscoverRulesConfig',
'haystack',
'polymorphic',
'django_global_request',
'dbbackup',
'settings_context_processor',
'sass_processor',
'easyaudit',
'constance',
'constance.backends.database',
'django_any_js',
'django_yarnpkg',
'django_tables2',
'easy_thumbnails',
'image_cropping',
'maintenance_mode',
'menu_generator',
'phonenumber_field',
'debug_toolbar',
'django_select2',
'hattori',
'templated_email',
'html2text',
'django_otp.plugins.otp_totp',
'django_otp.plugins.otp_static',
'django_otp',
'otp_yubikey',
'aleksis.core',
'impersonate',
'two_factor',
'material',
'pwa',
'ckeditor',
'django_js_reverse',
'colorfield',
'django_bleach',
'aleksis.apps.chronos',
'aleksis.apps.exlibris',
'aleksis.apps.ldap']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
'django_global_request.middleware.GlobalRequestMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django_otp.middleware.OTPMiddleware',
'impersonate.middleware.ImpersonateMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
'maintenance_mode.middleware.MaintenanceModeMiddleware']
Traceback (most recent call last):
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/rules/contrib/views.py", line 204, in _wrapped_view
obj = fn(request, *args, **kwargs)
File "/home/dolphi/Projects/AlekSIS/AlekSIS/aleksis/core/views.py", line 78, in get_person_by_pk
return request.user.person
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/django/utils/functional.py", line 225, in inner
return func(self._wrapped, *args)
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/django/utils/functional.py", line 225, in inner
return func(self._wrapped, *args)
File "/home/dolphi/Projects/AlekSIS/venv/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py", line 423, in __get__
self.related.get_accessor_name()
Exception Type: RelatedObjectDoesNotExist at /person
Exception Value: User has no person.