Hello,
I’m testing uploading a small app.py file with the following:
import sys,os
INTERP = os.path.join(os.environ['HOME'], 'www','.local', 'bin', 'python3.11')
sys.path.append("/home/qwertgolmar/www/.local/lib/python3.11/site-packages/")
from flask import Flask, render_template
from config import config
app = Flask(__name__)
@app.route('/test')
def test():
return "<h1>Flask</h1>"
application = app
if __name__=='__main__':
app.config.from_object(config['development'])
application.run()
and now I modify the app.py by
import sys,os
INTERP = os.path.join(os.environ['HOME'], 'www','.local', 'bin', 'python3.11')
sys.path.append("/home/qwertgolmar/www/.local/lib/python3.11/site-packages/")
from flask import Flask, render_template
from config import config
app = Flask(__name__)
@app.route('/test')
def test():
return render_template('auth/login2.html')
application = app
if __name__=='__main__':
app.config.from_object(config['development'])
application.run()
the html template is located inside the templates/auth folder
Because it gives an error and does not render the template