why url cannot be generated after use blueprint
<p>My current project looks like this:</p>

<pre><code>âââ __init__.py
âââ pages
âââ settings.py
âââ static
âââ templates
âÂ Â  âââ article.html
âÂ Â  âââ base.html
âÂ Â  âââ index.html
âÂ Â  âââ posts.html
âââ view
âÂ Â  âââ article.py
âÂ Â  âââ home.py
âÂ Â  âââ index.py
âÂ Â  âââ postwall.py
</code></pre>

<p>I breaked views.py(no longer in the project) into files and those files cannot generate url dynamically anymore. What i had in article.py is:</p>

<pre><code>from flask import Blueprint, render_template
from app import articles
article = Blueprint('article',__name__)

@article.route('/article/&lt;path:path&gt;/')
def page(path):
    article = articles.get_or_404(path)
    return render_template('article.html',page=article)
</code></pre>

<p>Meanwhile, posts.html which offers the link button to articles doesn't work anymore:</p>

<pre><code>&lt;a href="{{ url_for('page', path=page.path) }}"&gt;More -&gt;&lt;/a&gt;
</code></pre>

<p>What is the problem?Did I miss something in the blueprint file?</p>

<p>solved. change</p>

<pre><code>&lt;a href="{{ url_for('page', path=page.path) }}"&gt;More -&gt;&lt;/a&gt;
</code></pre>

<p>to </p>

<pre><code>&lt;a href="{{ url_for('article.page', path=page.path) }}"&gt;More -&gt;&lt;/a&gt;
</code></pre>

<p>forgot to add blueprint name </p>

python flask jinja2