-
-
Save angelabauer/81c9f4512a14c3cb04ba03540888875d to your computer and use it in GitHub Desktop.
<!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> |
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
<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>
<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!
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?
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 :)
everyone's output looked like her because mine was a simple label and button