Flask Security giving routing error on security.register
<p>While trying to link to Flask-Securities register view in my template with:</p>

<pre><code>&lt;li&gt;&lt;a href="{{ url_for('security.register') }}"&gt;Register&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>I get a routing error</p>

<pre><code>werkzeug.routing.BuildError

werkzeug.routing.BuildError: Could not build url for endpoint 'security.register'. Did you mean 'security.login' instead?
</code></pre>

<p>From what I've searched around for, setting the Flask Security config line "SECURITY_REGISTERABLE" to True should have fixed it, and yet it's set to True and I'm still getting this error...</p>

<p>I setup Flask Security in my models.py like so:</p>

<pre><code>user_datastore = SQLAlchemyUserDatastore(db, User, Role)
security = Security(app, user_datastore)
</code></pre>