Paths in Python, HTML integration
Paths in Python, HTML integration
You're trying to connect your Flask app with a template file. Make sure you include the correct path in your Flask app's URL configuration. Link the template like this:
```python
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html') # Adjust the path if needed
```
Ensure `index.html` is in the correct directory relative to your app's root. If you're using a subdirectory, update the path accordingly.