Request data in template vs. database query in view

Hi there,
in my template I could get all the data I need using the request function.


{{ request.user.userprofile.about_me }}

For this I would need about 10 similar calls.

The alternative would be to query the data in via a single database query. Which variant is more recommended - does it make a difference to the performance of the website?

That’s a bit of an exaggeration. Retrieving that data is one statement within your view.

Generally speaking, you’re almost always better off retrieving your data in the view and not within the template.