Last modified by Leon Poon on 2021/03/23 13:17

From version 2.1
edited by Leon Poon
on 2018/12/24 12:29
Change comment: There is no comment for this version
To version 1.1
edited by Leon Poon
on 2018/12/24 09:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,8 @@
1 -First, [[set up a virtualenv>>doc:Main.How to Create a VirtualEnv.WebHome]].
1 +First, [[set up a virtualenv>>url:https://wiki.codepowered.com/wiki/How_to_Create_a_VirtualEnv]].
2 2  
3 -[[In the virtualenv, install flask>>doc:Main.How to add libraries to a virtualenv.WebHome]], then try out this .py file.
3 +[[In the virtualenv, install flask>>url:https://wiki.codepowered.com/wiki/How_to_add_libraries_to_a_virtualenv]], then try out this .py file.
4 4  
5 -{{code language="python"}}
6 -from flask import Flask
5 +{{{from flask import Flask
7 7  
8 8  app = Flask(__name__)
9 9  
... ... @@ -12,8 +12,8 @@
12 12   return 'Hi'
13 13  
14 14  app.run()
15 -{{/code}}
14 +}}}
16 16  
17 -Run this script [[in the virtualenv>>doc:Main.How to Run a Python Script in a VirtualEnv.WebHome]]. It will not exit.
16 +Run this script [[in the virtualenv>>url:https://wiki.codepowered.com/wiki/How_to_Run_a_Python_Script_in_a_VirtualEnv]]. It will not exit.
18 18  
19 19  Now you should be able to access [[http:~~/~~/localhost:5000/>>url:http://localhost:5000/]] in your web browser.