Skip to content

Commit

Permalink
Few more files
Browse files Browse the repository at this point in the history
  • Loading branch information
armanchhetri committed Jul 7, 2021
1 parent c6eeebb commit 6864ec4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hello_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@



###---------------------Step 2: create flask app -----------------------------------------------####
###---------------------Step 2: Create flask app -----------------------------------------------####




###----------------------Step 3: set route -----------------------------------------------------####
###----------------------Step 3: Set route -----------------------------------------------------####



Expand Down
6 changes: 4 additions & 2 deletions request_and_forms/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask, render_template, request
#import request from flask
from flask import Flask, render_template

app = Flask(__name__)

Expand Down Expand Up @@ -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")
Expand Down
Binary file added static_files/__pycache__/utils.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion static_files/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def contact():



if __name__=="__main__":
if __name__== "__main__":
app.run(debug=True)
2 changes: 1 addition & 1 deletion static_files/templates/portfolio.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h4>
</div>
<!--Content starts-->
<div class="content">
<h3 style="text-align: center;">Contact Me</h4>
<h3 style="text-align: center;">Share Your Contact</h4>
<form action="/" method="post">
<input type="text" placeholder="Your Name" name="name">
<input type="text" placeholder="Email" name="email">
Expand Down

0 comments on commit 6864ec4

Please sign in to comment.