extends must be the first tag in the template. [Ticket#751089]
Internal Server Error: /person/3033/edit/
TemplateSyntaxError at /person/3033/edit/
must be the first tag in the template.
Request Method: POST
Request URL: [1] https://info.katharineum.de/person/3033/edit/
Django Version: 3.2.11
Python Executable: /usr/bin/uwsgi-core
Python Version: 3.9.2
Python Path: ['/srv/aleksis', '.', '', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/srv/aleksis/envs/production/lib/python3.9/site-packages']
Server time: Fri, 28 Jan 2022 12:10:38 +0100
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',
'django_uwsgi',
'django_extensions',
'guardian',
'rules.apps.AutodiscoverRulesConfig',
'haystack',
'polymorphic',
'dj_cleavejs.apps.DjCleaveJSConfig',
'dbbackup',
'django_celery_beat',
'django_celery_results',
'celery_progress',
'health_check.contrib.celery',
'djcelery_email',
'celery_haystack',
'sass_processor',
'django_any_js',
'django_yarnpkg',
'django_tables2',
'maintenance_mode',
'menu_generator',
'reversion',
'phonenumber_field',
'debug_toolbar',
'django_prometheus',
'django_select2',
'templated_email',
'html2text',
'django_otp.plugins.otp_totp',
'django_otp.plugins.otp_static',
'django_otp',
'otp_yubikey',
'aleksis.core',
'allauth',
'allauth.account',
'allauth.socialaccount',
'invitations',
'health_check',
'health_check.db',
'health_check.cache',
'health_check.storage',
'health_check.contrib.psutil',
'health_check.contrib.migrations',
'dynamic_preferences',
'dynamic_preferences.users.apps.UserPreferencesConfig',
'impersonate',
'two_factor',
'material',
'ckeditor',
'ckeditor_uploader',
'django_js_reverse',
'colorfield',
'django_bleach',
'favicon',
'django_filters',
'oauth2_provider',
'rest_framework',
'extra_views',
'feeds',
'aleksis.apps.untis.apps.UntisConfig',
'aleksis.apps.hjelp.apps.HjelpConfig',
'aleksis.apps.resint.apps.ResintConfig',
'aleksis.apps.abi.apps.DefaultConfig',
'aleksis.apps.alsijil.apps.AlsijilConfig',
'aleksis.apps.donations.apps.DonationsConfig',
'aleksis.apps.fritak.apps.FritakConfig',
'aleksis.apps.ldap.apps.LDAPConfig',
'aleksis.apps.csv_import.apps.CSVImportConfig',
'aleksis.apps.chronos.apps.ChronosConfig',
'aleksis.apps.order.apps.DefaultConfig',
'aleksis.apps.dashboardfeeds.apps.DefaultConfig',
'aleksis.apps.evalu.apps.DefaultConfig',
'cachalot',
'django_cleanup.apps.CleanupConfig']
Installed Middleware:
['django_prometheus.middleware.PrometheusBeforeMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
'django.contrib.sites.middleware.CurrentSiteMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django_otp.middleware.OTPMiddleware',
'impersonate.middleware.ImpersonateMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'maintenance_mode.middleware.MaintenanceModeMiddleware',
'aleksis.core.util.middlewares.EnsurePersonMiddleware',
'django_prometheus.middleware.PrometheusAfterMiddleware']
Traceback (most recent call last):
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/reversion/views.py", line 28, in do_revision_view
response = func(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
return bound_method(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/contrib/auth/mixins.py", line 104, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/views/generic/edit.py", line 194, in post
return super().post(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/views/generic/edit.py", line 142, in post
return self.form_valid(form)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/core/views.py", line 456, in form_valid
self.object.notify_about_changed_data(send_notification_fields)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/core/models.py", line 389, in notify_about_changed_data
send_email(
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/core/util/email.py", line 24, in send_email
return send_templated_mail(
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/templated_email/__init__.py", line 66, in send_templated_mail
return connection.send(template_name, from_email, recipient_list, context,
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/templated_email/backends/vanilla_django.py", line 251, in send
e = self.get_email_message(template_name, context, from_email=from_email,
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/templated_email/backends/vanilla_django.py", line 132, in get_email_message
parts = self._render_email(template_name, context,
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/templated_email/backends/vanilla_django.py", line 106, in _render_email
response[part] = render_block_to_string(full_template_names, part, render_context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/render_block/base.py", line 28, in render_block_to_string
t = loader.select_template(template_name)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loader.py", line 42, in select_template
return engine.get_template(template_name)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/backends/django.py", line 34, in get_template
return Template(self.engine.get_template(template_name), self)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/engine.py", line 143, in get_template
template, origin = self.find_template(template_name)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/engine.py", line 125, in find_template
template = loader.get_template(name, skip=skip)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loaders/cached.py", line 58, in get_template
template = super().get_template(template_name, skip)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loaders/base.py", line 29, in get_template
return Template(
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 155, in __init__
self.nodelist = self.compile_nodelist()
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 193, in compile_nodelist
return parser.parse()
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 479, in parse
self.extend_nodelist(nodelist, compiled_result, token)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 496, in extend_nodelist
raise self.error(
Exception Type: TemplateSyntaxError at /person/3033/edit/
Exception Value: must be the first tag in the template.
Request information:
USER: ***
GET: No GET data
POST:
csrfmiddlewaretoken = '96GKudGqTKp33vsxnLFPP6BVoZJCARx6uOFLHeJ4g4H73yVAXpVYXtUX2SfLyTQO'
FILES:
avatar =
Edited by Jonathan Weth