Please, I'm working on a dashboard project and so far I am facing challenges when it comes to writing functions for my views.
The difficulty here is, how do I write functions for different parts on a template.
For instance, I want to write a function that takes a user to his profile. How do I do that?
So far this is what I came up with:
if request.method ==GET:
return (render, '/login.html/')