Replies: 1 comment
-
|
I found a way around it just in case anyone needs this functionality.
` `... {% if request.session['user'] %} {{request.session["user"]["username"]}} {% endif %}... ` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to display logged in admin username and profile image on the admin dashboard. I've already overrode the layout.html file to contain the profile details. How do I serve(layout.html) it to a route so I can pass the details as context?
I'm using FastAPI
Beta Was this translation helpful? Give feedback.
All reactions