web applications - Python - How is it used? -


this may seem stupid question, how python used? i'm new language , i'm wanting learn how use in building web applications, none of tutorials i've seen have demo of code in action. so, once you've done work in python, how go using in website?

majority of experience in front end development i'm little confused how use in website. guess main question be. lets have simple app outputs "hello, world". run in application netbeans, how view in website? since there no index.html gets created it, i'm confused how use in actual website.

thanks info.

here rather elegant "hello world" in web.py:

import web  urls = (     '/', 'index' )  class index:     def get(self):         return "hello, world!"  if __name__ == "__main__":     app = web.application(urls, globals())     app.run() 

this script (with web.py) running web server. run call python interpreter so:

python hello.py 

then access web browser (at http://[your server]:9000)


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -