[Answered] How Do I Use Flask On Johnny in Questions Posted April 10, 2017 Hi... please help me...I'm just have one of problem.I want to use python but i don't know to setting to flask.i did searching google, file: public-html/cgi-bin/cgi.cgi #!/usr/bin/python from wsgiref.handlers import CGIHandlerfrom views import appimport osimport cgitb; cgitb.enable() os.environ['SERVER_NAME'] = '127.0.0.1'os.environ['SERVER_PORT'] = '5000'os.environ['REQUEST_METHOD'] = 'GET'os.environ['PATH_INFO'] = ""CGIHandler().run(app) file: views.py from flask import Flaskapp = Flask(__name__) @app.route("/")def hello(): return "This is Hello World!\n" if __name__ == "__main__": app.run() file: .htaccess RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ /home/USERNAME/public_html/cgi-bin/cgi.cgi/$1 [L] ...i had connect to host on webit's just show me that text '/Index' also i was uploaded files that i made to python files and html files in templates folder but it is not working. My english is so bad...sorry. please help me ㅠㅠㅠㅠ
[Answered] How Do I Use Flask On Johnny
in Questions
Posted
Hi... please help me...
I'm just have one of problem.
I want to use python but i don't know to setting to flask.
i did searching google,
file: public-html/cgi-bin/cgi.cgi
file: views.py
file: .htaccess
...
i had connect to host on web
it's just show me that text '/Index'
also i was uploaded files that i made to python files and html files in templates folder but it is not working.
My english is so bad...sorry. please help me ㅠㅠㅠㅠ