[Answer]-Cookie does not show up in Chrome Developer Tools (Django Python)

1👍

You check if the last_visit cookie already exists, and only update it if it does. What if it doesn’t? Where are you creating it for the first time?

I suspect an indentation error: the last else block should be one level to the left, so it is run if last_visit does not exist, as the comment states.

Leave a comment