title: Flask_login - LOGIN_DISABLED = True, doesnt seem to work after LoginManager initiation
body: <p>I want the <code>@login_required</code> to be disabled when the python file is run standalone(dev mode), but it seems that it cant be disabled after <code>flask_login.LoginManager()</code> initiation.
  When i run this code on a http server, i want Flask_login to be enabled.</p>
  
  <p>I found a couple of ways to do this, but that doesnt seem to work. Here is one:</p>
  
  <pre><code>if __name__ == "__main__":
          app.config.update(dict(LOGIN_DISABLED=True))
          print(app.config)
  </code></pre>
  
  <p>The printout gives me a string that ends with: <code>...'LOGIN_DISABLED': True}&gt;</code>. Which means that the setting is saved. But still, its not disabled.</p>
  
  <p>I was checking the doc's of Flask_login and found:</p>
  
  <blockquote>
    <p><a href="https://i.stack.imgur.com/IxC9l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IxC9l.png" alt="enter image description here"></a></p>
  </blockquote>
  
  <p>Thanks in advance.</p>