Forums

Ask about flask

I've a app full, in localhost, it run : python ctf

[+] CTF Board

[+] /root/DATA/Dropbox/ctfBoard-master/config.py not found

[+] Generating configuration file

[+] OK

[+] /root/DATA/Dropbox/ctfBoard-master/ctfBoard/ctf.db found

[+] OK

[+] Launching !

[+] DEBUG = False

[+] SECRET_KEY = 'R\x9c0\x0c\xb5\xedGRG"\x90D=\xbe\xb4\xaa\x16\x03\xbeJm|\xe4\x84\xbc_H\x96\xee\x04XM'

[+] HOST =

[+] PORT = 5001

  • Running on http://localhost:5001/

Will autoconfig an creat all to use flask app in a folder in this And result only: http://localhost:5001

But in pythonanywhere, i doesn't put it in where, help me

Have you tried using the Flask "Quickstart"? That should give you a good way of seeing how web applications work in PythonAnywhere. Just go to the "Web" tab, then click on the "Add a new web app" button. Once you've done that, you should understand how it all fits together, so replacing the example app with your own one should be pretty simple.