session['logged_in'] = True
を使ってセッションでTrueにやるログイン方法で
raise RuntimeError('the session is unavailable because no secret ' RuntimeError: the session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.
のエラーが表示されるとき。
SECRET_KEY = 'development key
の設定忘れている可能性がある。