How do I put multiple pages under one domain?
<p>So, i have a few app pages that i would like to put under urls like this</p>

<p>constants.heroku.com/physics/planck</p>

<p>constants.heroku.com/physics/e</p>

<p>constants.heroku.com/physics/standardgravitation</p>

<p>My app.py for the plancks constant app looks like this.</p>

<pre><code>import os
from flask import Flask

app = Flask('plancksconstant')
app = Flask(__name__.split('.')[0])

@app.route('/physics/planck')
def hello():
    return '6.626068E-34'

if __name__ == '__main__':
    # Bind to PORT if defined, otherwise default to 5000.
    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port)
</code></pre>

<p>the url for this app is <a href="http://nameless-sands-2295.herokuapp.com/physics/planck" rel="nofollow">http://nameless-sands-2295.herokuapp.com/physics/planck</a>. I got the end part working correctly (/physics/planck) but the beginning of the url is still the name of the app (nameless-sands-2295). How do I change that to be "constants" instead of the name of the app?</p>

<p>solved it!!!!
just did this</p>

<pre><code>import os
from flask import Flask

app = Flask('plancksconstant')
app = Flask(__name__.split('.')[0])

@app.route('/physics/planck')
def hello():
    return '6.626068E-34'

@app.route('/physics/standardgravity')
def hello():
    return '9.8'

if __name__ == '__main__':
    # Bind to PORT if defined, otherwise default to 5000.
    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port)
</code></pre>
