I have a workspace where users can add note, they can pick a date I am trying to create 2 links, one for yesterday, one for tomorrow.
Right now I am using a calendar and it is fine, but I would like to create 2 quick links that send them to the note for yesterday.
So i have a code like that :
def WorkspaceYesterday(request):
yesterday = datetime.now() - timedelta(days=1)
yesterday.strftime('%m%d%y')
But i dont know how to render it in my template with a link.
Thank you