Ask coding questions

← Back to all posts
Application Gives 500 Error
CosmicBear

I'm trying to make a login system for my game, but it's not working. I have it checking for session["log"] which should be True if the user is logged in. This is the code to make it default False:

However, my website returns an error. How can i make it not return an error? I can't use before_request because then it would be in an endless loop.

Voters
CosmicBear
Comments
hotnewtop
ch1ck3n

use a python repl

ruiwenge2

why are you using an html repl?

ruiwenge2

try using a Python repl

CosmicBear

@ruiwenge2

Still not working