title: How to avoid debugging mode in flask
body: <p>Kindly help me How to avoid debugging mode in Flask.
  It is constantly giving me build errors</p>
  <p>Build Error looks similar to this</p>
  <pre><code>File &quot;C:\Users\HarshitGupta\Desktop\NEw\KoreD\KoreD\templates\flask_user\_common_base.html&quot;, line 1, in top-level template code
    {% extends &quot;flask_user/header.html&quot; %}
  File &quot;C:\Users\HarshitGupta\Desktop\NEw\KoreD\KoreD\templates\flask_user\header.html&quot;, line 60, in top-level template code
    &lt;li&gt;&lt;a href=&quot;{{ url_for('.home') }}&quot;&gt; &lt;i class=&quot;fa fa-pie-chart&quot;&gt;&lt;/i&gt;Home&lt;/a&gt;&lt;/li&gt;
  File &quot;C:\Users\HarshitGupta\Anaconda3\lib\site-packages\flask\helpers.py&quot;, line 356, in url_for
    return appctx.app.handle_url_build_error(error, endpoint, values)
  File &quot;C:\Users\HarshitGupta\Anaconda3\lib\site-packages\flask\app.py&quot;, line 2061, in handle_url_build_error
    reraise(exc_type, exc_value, tb)
  File &quot;C:\Users\HarshitGupta\Anaconda3\lib\site-packages\flask\_compat.py&quot;, line 35, in reraise
    raise value
  File &quot;C:\Users\HarshitGupta\Anaconda3\lib\site-packages\flask\helpers.py&quot;, line 345, in url_for
    force_external=external)
  File &quot;C:\Users\HarshitGupta\Anaconda3\lib\site-packages\werkzeug\routing.py&quot;, line 1776, in build
    raise BuildError(endpoint, values, method, self)
  **werkzeug.routing.BuildError: Could not build url for endpoint 'user.home'. Did you mean 'user.login' instead?**
  </code></pre>