Skip to content

Instantly share code, notes, and snippets.

@TheMuellenator
Forked from angelabauer/index.html
Last active March 22, 2025 13:10
Show Gist options
  • Save TheMuellenator/c6177ac108650fdc8246d29ff0fab284 to your computer and use it in GitHub Desktop.
Save TheMuellenator/c6177ac108650fdc8246d29ff0fab284 to your computer and use it in GitHub Desktop.
Day 60 L458 - Simple HTML Form Revision
<!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>
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template("index.html")
if __name__ == "__main__":
app.run(debug=True)
@kubilaykaand
Copy link

I get a 404 error from running main and clicking on the development server address. Any Suggestions?

in the source code of this page it says app.route('/'), where it should be : @app.route('/')

@Ryanico
Copy link

Ryanico commented Dec 25, 2024

please help, I keep on running the current main.py but it seems there is another code running in the background. I am using PyCharm

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