Skip to content

Instantly share code, notes, and snippets.

@angelabauer
Created September 23, 2020 11:10
Show Gist options
  • Save angelabauer/81c9f4512a14c3cb04ba03540888875d to your computer and use it in GitHub Desktop.
Save angelabauer/81c9f4512a14c3cb04ba03540888875d to your computer and use it in GitHub Desktop.
Simple HTML Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form>
<label>Name</label>
<input type="text" placeholder="name">
<label>Password</label>
<input type="text" placeholder="password">
<button type="submit">Ok</button>
</form>
</body>
</html>
@Tommy-caveh
Copy link

for me the render_template('index.html') worked only when the file was in the templates directory

Yes, the picture of page 509. is wrong. flask only read templates from templates folder as she mentioned in Day 56

@siddhesh20014
Copy link

everyone's output looked like her because mine was a simple label and button

@AmatyaJoshi
Copy link

for me the render_template('index.html') worked only when the file was in the templates directory

Yes, the picture of page 509. is wrong. flask only read templates from templates folder as she mentioned in Day 56

its just a trick question. she wants us to understand the concept of making a template directory first for solving such cases on our own

@Speedforce12
Copy link

<title>Title</title> First Name
<label for="passwrd" class="form-label">Password</label>
<input type="password" id="passwrd" class="form-control" placeholder="Enter your password"> <br>

<button type="submit"  class="btn btn-primary">Submit</button>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity_no="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>

@NSAKGBM16CIA
Copy link

<title>Title</title> First Name ``` Password

Submit


<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity_no="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>

looks like you googled this one!

@NSAKGBM16CIA
Copy link

Hello Angela. I hava recently watched your The Complete 2020 Web Development Bootcamp | Udemy video tuturial, I really liked it. So I decided to translate it into Uzbek language if you are not against with me. I am going to copy only your words in order to teach easily. Ofcourse I will prepare presentations. Give me access it. If I prepare video lesson like your it will be unfair for me and for my God, so I am asking permission you.

how is it going?

@DestinyMor
Copy link

for me the render_template('index.html') worked only when the file was in the templates directory

Thank you for mentioning this, mine also did not work for the life of me lol, and saw this comment and boom works :)

@MrShapol
Copy link

Username: Password:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment