From 210fb781ea5d4a479d16a2849d8564baacf102b8 Mon Sep 17 00:00:00 2001 From: StarLee Date: Sat, 19 Mar 2016 08:50:02 +0800 Subject: [PATCH] first commit --- .gitignore | 1 + .project | 17 +++++++++++++++++ .pydevproject | 8 ++++++++ app/__init__.py | 5 +++++ app/__init__.pyc | Bin 0 -> 257 bytes app/views.py | 7 +++++++ app/views.pyc | Bin 0 -> 392 bytes run.py | 4 ++++ run.pyc | Bin 0 -> 208 bytes 9 files changed, 42 insertions(+) create mode 100644 .gitignore create mode 100644 .project create mode 100644 .pydevproject create mode 100644 app/__init__.py create mode 100644 app/__init__.pyc create mode 100644 app/views.py create mode 100644 app/views.pyc create mode 100644 run.py create mode 100644 run.pyc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f9b62f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +flask/* diff --git a/.project b/.project new file mode 100644 index 0000000..26bb6a3 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + IHelpServer + + + + + + org.python.pydev.PyDevBuilder + + + + + + org.python.pydev.pythonNature + + diff --git a/.pydevproject b/.pydevproject new file mode 100644 index 0000000..e8aa1b9 --- /dev/null +++ b/.pydevproject @@ -0,0 +1,8 @@ + + + +/${PROJECT_DIR_NAME} + +python 2.7 +D:\Projects\python\IHelpServer\flask\Scripts\python.exe + diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..289e2f6 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,5 @@ +from flask import Flask + +app = Flask(__name__) + +from app import views \ No newline at end of file diff --git a/app/__init__.pyc b/app/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..864a342a68ee21c2911fdded721a982aa81b70b6 GIT binary patch literal 257 zcmYk0O$x#=5QQg61rY_0(N%FRA}&O9BhrG45(uT8Vm1Ati51r#*QE#0NfC6&yv)aA z9wT0p(L8@1Q}`CAe?@I(BpE#h8lYqlGhoO7IXnnN?{UxqN)KWWSSBFyJz6T>R6e80 z4oEgSF_#~91>VfwcTR8T&JKyd4oQ@%k`k4&f*@&{(B=5le_{f{^;{m>`i!YHvboz+ nUCG@RbrWIRVJm4>Dpgd4RVpCgWiQG)yJ}pzNaHS@@-hDamOeDf literal 0 HcmV?d00001 diff --git a/app/views.py b/app/views.py new file mode 100644 index 0000000..9506e62 --- /dev/null +++ b/app/views.py @@ -0,0 +1,7 @@ +from app import app + +@app.route('/') +@app.route('/index') +def index(): + return "hi ssdf df hello world" + \ No newline at end of file diff --git a/app/views.pyc b/app/views.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c7046496fb7b94e24fec6ada76444cc086503e28 GIT binary patch literal 392 zcmbtPJxc>Y5S_hCL`1>L`pN~tG*&7iXrWDz9Ha=_NOt5dY_iABCed1dqrbw=AE0lJ zU}5Vp^Y+cY-T5fLjt)M~Kc{orS&8!oA(sFTHx!7LL^C48L<>W{pf^K1UMlwkdM73D zSwVhCwcW%2_8VpmSk}5vU6(Z(iHf6k<@x2eu?n{c8353=wgt#oPJm5YiTLLV-f#%9 z+Qt;Tg+hNoPH}g4;T}_5@H~s_UUL&y?%|$8S998Mau~yHTHeYT#3A1IgXn;wEvXz^ hO(x2FJ;inAiE97twvQTD%jnmEuXW*m+2i8S`~aT%Q6>NY literal 0 HcmV?d00001 diff --git a/run.py b/run.py new file mode 100644 index 0000000..e57db97 --- /dev/null +++ b/run.py @@ -0,0 +1,4 @@ +from app import app + + +app.run(debug = True) diff --git a/run.pyc b/run.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a2b11542ed183c96c0b99e5e81496f29a4a8cfac GIT binary patch literal 208 zcmZSn%*%Bnkn3U<6Ht_&m6}{q98*wPl98Vm M1KC^51SABQ0ozR~>i_@% literal 0 HcmV?d00001