title: How do I handle login in flask with multiple blueprints?
body: <p>I have multiple blueprints that needs to be integrated into a single app. I'm using <code>flask-login</code> to handle logins. However I'm confused on how to handle the <code>LoginManager()</code> and the <code>.user_loader</code> for my blueprints.</p>
  
  <p>This is my current file structure.</p>
  
  <pre><code>system/
       run.py
       config.py
       app/
          __init__.py
          models.py
          views/
               blueprint1.py
               blueprint2.py
          static/
          templates/
                &lt;templates&gt;
  </code></pre>
  
  <p>What's the correct way to implement them? Do I just call them at the <code>__init__.py</code> and import the login manager variable at the blueprints? or Do I need to call them individually in the blueprints?</p>
  
  <p>Hopefully I'm able to portray the question clearly. Thank you for reading and answering</p>