Open jkhoo9290 opened 3 years ago
import web
urls = ( '/', 'index1' # the index1 is mapping to the class name below on line 4
)
class index1: def GET(self): import Json # import something from GetMethod py File
return Json.loadJson()
if name == "main": # Standard Web Starter Instruction app = web.application(urls, globals()) # Mapping to line 4 'urls' variable to tell Python app.run() # Standard Web Starter Instruction
This is a sample issue only
import web
urls = ( '/', 'index1' # the index1 is mapping to the class name below on line 4
)
class index1: def GET(self): import Json # import something from GetMethod py File
return "Hello Chrome 123!" # return simple message
if name == "main": # Standard Web Starter Instruction app = web.application(urls, globals()) # Mapping to line 4 'urls' variable to tell Python app.run() # Standard Web Starter Instruction