From 6864ec4e374bd805d9a004a18dae2aadd0f85f29 Mon Sep 17 00:00:00 2001 From: arman <074bct506.arman@pcampus.edu.np> Date: Wed, 7 Jul 2021 19:08:18 +0545 Subject: [PATCH] Few more files --- hello_app/app.py | 4 ++-- request_and_forms/app.py | 6 ++++-- static_files/__pycache__/utils.cpython-38.pyc | Bin 0 -> 500 bytes static_files/app.py | 2 +- static_files/templates/portfolio.html | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 static_files/__pycache__/utils.cpython-38.pyc diff --git a/hello_app/app.py b/hello_app/app.py index 47c53e6..064a6bf 100644 --- a/hello_app/app.py +++ b/hello_app/app.py @@ -2,12 +2,12 @@ -###---------------------Step 2: create flask app -----------------------------------------------#### +###---------------------Step 2: Create flask app -----------------------------------------------#### -###----------------------Step 3: set route -----------------------------------------------------#### +###----------------------Step 3: Set route -----------------------------------------------------#### diff --git a/request_and_forms/app.py b/request_and_forms/app.py index 8b97529..a8b082c 100644 --- a/request_and_forms/app.py +++ b/request_and_forms/app.py @@ -1,4 +1,5 @@ -from flask import Flask, render_template, request +#import request from flask +from flask import Flask, render_template app = Flask(__name__) @@ -35,7 +36,8 @@ def message(): ####-----------------------STEP 3: GET and POST using same endpoint---------------------------------### -# @app.route('/', methods=["GET","POST"]) +### Pass methods in app.route +# @app.route('/') # def index(): # if request.method == "GET": # return render_template("form.html") diff --git a/static_files/__pycache__/utils.cpython-38.pyc b/static_files/__pycache__/utils.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d71e8d7fce51bd02973e1e113d228e70df787105 GIT binary patch literal 500 zcmZuu%}N6?5T40qTP^huijN=^N*4rgB7%yZia&_rrG`yPgW1ipNi9ly(z_3!f*yUP zT*ZU0;K|t{;=zIWzD#DmVTL(fSZDy*-qXkBJ_5W~!Czw(Y?Hedfdq*LEiRa08$ekgO=-~w=d&R4Ix$c=n8Qrmm)-;lQ$|uoFG~us^a0VN2 z1jld=zcp*qXabKQ;|b1?5!Rk-|Ena>MD^b7a%yugQr|b)`EKg219k(7+m)WkRA(;} z+H?+wHdl==>;!DId0^IsdQ~oU8MrM}9^!GSy=upS=OhcUs&pYPDq&!QB5dmpD7{V^OO9KpA7lZm5gIE0GQp=Y`j4f1r(W$;fNt zy2VXsI&rP~KPyxhaEk^&Re4=ht6%xz{?j*Qx(+k&fF G&EYqi&U>@~ literal 0 HcmV?d00001 diff --git a/static_files/app.py b/static_files/app.py index 0e20c05..fea82bd 100644 --- a/static_files/app.py +++ b/static_files/app.py @@ -20,5 +20,5 @@ def contact(): -if __name__=="__main__": +if __name__== "__main__": app.run(debug=True) \ No newline at end of file diff --git a/static_files/templates/portfolio.html b/static_files/templates/portfolio.html index da1218b..a32fdb7 100644 --- a/static_files/templates/portfolio.html +++ b/static_files/templates/portfolio.html @@ -41,7 +41,7 @@

-

Contact Me

+

Share Your Contact