Python - How to run multiple flask apps from same client machine : <p>I have one flask application script as given below :</p>

<pre><code>from flask import Flask
app = Flask(__name__)

@app.route("/&lt;string:job_id&gt;")
def main(job_id):
    return "Welcome!. This is Flask Test Part 1"

if __name__ == "__main__":
    job_id = 1234
    app.run(host= '0.0.0.0')
</code></pre>

<p>I have another flask application script as below :</p>

<pre><code>from flask import Flask
app = Flask(__name__)

@app.route("/&lt;string:ID&gt;")
def main(ID):
    return "Welcome!. This is Flask Test Part 2"

if __name__ == "__main__":
    ID = 5678
    app.run(host= '0.0.0.0')
</code></pre>

<p>The only difference between both the scripts is the argument name and its value. Now my question is assume that I am executing the first script. So I will get something like </p>

<pre><code>* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
</code></pre>

<p>When I execute <a href="http://127.0.0.1:5000/1234" rel="noreferrer">http://127.0.0.1:5000/1234</a> in my browser I am able to see </p>

<blockquote>
  <p>"Welcome!. This is Flask Test Part 1"</p>
</blockquote>

<p>Now with this server active, I am executing the second script. So again I get </p>

<pre><code>* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
</code></pre>

<p>But when I execute <a href="http://127.0.0.1:5000/5678" rel="noreferrer">http://127.0.0.1:5000/5678</a> in my browser I am able to see</p>

<blockquote>
  <p>"Welcome!. This is Flask Test Part 1"</p>
</blockquote>

<p>instead of </p>

<blockquote>
  <p>"Welcome!. This is Flask Test Part 2"</p>
</blockquote>

<p>I don't understand where I am doing mistake. Any inputs or alterations will be helpful</p>
