forked from Christian-Downs/AutoSAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.txt
More file actions
61 lines (48 loc) · 1.21 KB
/
input.txt
File metadata and controls
61 lines (48 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Here's a simple Flask web application structure with the required files and code:
### File Structure
```
flask_app/
│
├── main.py
├── templates/
│ └── index.html
└── README.md
```
### main.py
```python
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)
```
### templates/index.html
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Hello Flask</title>
</head>
<body>
<h1>Hello, Flask!</h1>
</body>
</html>
```
### README.md
```markdown
# Flask Web Application
This is a simple web application built using Python Flask.
## File Structure
- `main.py`: The main application file.
- `templates/`: Directory containing HTML templates.
- `index.html`: The main HTML page.
## How to Run
1. Ensure you have Flask installed.
2. Run the application using `python main.py`.
3. Open your browser and navigate to `http://127.0.0.1:5000/`.
```
This setup provides a very basic Flask web application that displays "Hello, Flask!" when accessed.