Cannot get flask app working

Hello!

Im struggling creating environment for my flask app. I started the project somewhere else, put in on GitHub, and wanted to continue my work in replit.

I add my GitHub repository, tried to configure .replit files and so on, but I get super lost.

Packager won’t work for me, I get error that python is not in environment PATH. Python works if I run python command in terminal btw.

→ python3 -m poetry init --no-interaction
exec: “python3”: executable file not found in $PATH

I tried to copy files from sample flask template , but that didn’t work either.

Is there any step by step guide to configure environment for files imported from GitHub?

my repl: https://replit.com/@tomczykart/gameofstacks
cleanup branch

Hey @tomczykart, does this code help?

from flask import Flask

app = Flask(__name__)


@app.route('/')
def index():
    return 'Hello from Flask!'


app.run(host='0.0.0.0', port=81)

it’s to generate a web, you can then integrate your code!

2 Likes

(I think you accidentally pasted the code twice.)

Wow great spot @MattDESTROYER , I’ve quickly edited it @Hugo