
#python #flask
https://flask.palletsprojects.com/en/1.1.x/quickstart/#rendering-templates
Dlaczego nie widzi mojego templates folderu który jest tutaj?
Dostaję error
jinja2.exceptions.TemplateNotFound
jinja2.exceptions.TemplateNotFound: index.html
Problem jest opisany na stackoverflow ale nie dalem rady tego rozwiązać
Kod poniżej
_# -*- coding: utf-8 -*-
# quiz/quiz.py
from flask import Flask
from flask import rendertemplate
app = Flask(name)
@app.route('/')
def index():
return rendertemplate('index.html')
if _name == 'main_':
app.run(debug=True)
https://flask.palletsprojects.com/en/1.1.x/quickstart/#rendering-templates
Dlaczego nie widzi mojego templates folderu który jest tutaj?
Dostaję error
jinja2.exceptions.TemplateNotFound
jinja2.exceptions.TemplateNotFound: index.html
Problem jest opisany na stackoverflow ale nie dalem rady tego rozwiązać
Kod poniżej
_# -*- coding: utf-8 -*-
# quiz/quiz.py
from flask import Flask
from flask import rendertemplate
app = Flask(name)
@app.route('/')
def index():
return rendertemplate('index.html')
if _name == 'main_':
app.run(debug=True)

- Najlepsze
- Wszystkie komentarze







tak jak już pisałem godzine temu we wpisie który usunąłeś sugeruję nauczyć się pierwsze używać komptuera :D
Komentarz usunięty przez autora