<p dir="auto">It should be possible to assign a module to a domain. Currently you can only set subdomain.</p>
<ol dir="auto">
<li>File structure:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="project -
      - templates \
                - a \
                      search.html
                - b \
                      search.html
      - start.py
      - myapplication \
                - test.py "><pre class="notranslate"><code class="notranslate">project -
      - templates \
                - a \
                      search.html
                - b \
                      search.html
      - start.py
      - myapplication \
                - test.py 
</code></pre></div>
<ol dir="auto">
<li>Start file:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# start.py
from flask import Flask
from myapplication.test import test_blueprint

app = Flask(__name__)
app.register_blueprint(test_blueprint)"><pre class="notranslate"><code class="notranslate"># start.py
from flask import Flask
from myapplication.test import test_blueprint

app = Flask(__name__)
app.register_blueprint(test_blueprint)
</code></pre></div>
<ol dir="auto">
<li>my application</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# test.py
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound

test_blueprint = Blueprint('test_blueprint', __name__,
                        template_folder='absolute_path_to_project/templates/a')  
                        # YES, I specified the absolute path to the template a

@test_blueprint.route('/test')
def show():
    try:
        return render_template(''search.html&quot;) # HERE is the problem
    except TemplateNotFound:
        abort(404)"><pre class="notranslate"><code class="notranslate"># test.py
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound

test_blueprint = Blueprint('test_blueprint', __name__,
                        template_folder='absolute_path_to_project/templates/a')  
                        # YES, I specified the absolute path to the template a

@test_blueprint.route('/test')
def show():
    try:
        return render_template(''search.html") # HERE is the problem
    except TemplateNotFound:
        abort(404)
</code></pre></div>
<p dir="auto">Is this a problem?<br>
# Actually, I want to render <strong>a/search.html</strong><br>
# But, <code class="notranslate">render_template()</code> does not use <strong>test_blueprint's template_folder</strong><br>
# <code class="notranslate">render_template()</code> search the <strong>template list</strong>, find the first <strong>search.html</strong>, then render<br>
# So, maybe render <strong>a/search.html</strong> or <strong>b/search.html</strong><br>
# This depend on the sequence of the <strong>template list</strong></p>