Your message has been delivered
You aleady login OSC, would you like login with OSC
Watch Star Fork

demothr / python

demothr authored   master
commit d24fe2d25f1bc50c6c2c3462443b6bf9f94a238f
1 parent fa1e670c98

1 changed files, commit stats: +25 -0

  • README.MD +25 -0
@@ -0,0 +1,25 @@
+###PYTHON
+
+本地新建一个wsgi.py文件
+
+代码
+
+```python
+def application(environ, start_response):
+ status = '200 OK'
+ response_headers = [('Content-type','text/html')]
+ start_response(status, response_headers)
+ return ['<h1>Python Demo</h1>']
+```
+
+在网页上创建一个新项目,选择开启项目演示平台,框架选择wsgi
+
+填好演示平台的域名,之后可以在控制台更改
+
+将项目推送到Git@OSC
+
+进入项目演示平台控制台,点击部署项目,目前只会部署主分支上的代码
+
+重启应用使之生效
+
+访问设定的域名即可
\ No newline at end of file

Sign in and comment

Float_left Icon_close