You can use the TRANSACTIONS_IGNORE_PATTERNS configuration option to ignore specific views.
The list given should be a list of regular expressions which are matched against the transaction name as seen in the Elastic APM user interface:

To correlate performance measurement in the browser with measurements in your Django app,
you can help the RUM (Real User Monitoring) agent by configuring it with the Trace ID and Span ID of the backend request.
We provide a handy template context processor which adds all the necessary bits into the context of your templates.

To enable this feature, first add the rum_tracing context processor to your TEMPLATES setting.
You most likely already have a list of context_processors, in which case you can simply append ours to the list.

If the command succeeds in sending a test exception, it will print a success message:

python manage.py elasticapm test
Trying to send a test error using these settings:
SERVICE_NAME: <SERVICE_NAME>
SECRET_TOKEN: <SECRET_TOKEN>
SERVER: http://localhost:8200
Success! We tracked the error successfully! You should be able to see it in a few seconds.