Error: TemplateNotFound Pending

0

I'm trying to create a basic application, but I'm not able to render the template in the application Project Structure

├── Project
│   ├── Controllers
│   ├── __init__.py
│   ├── __init__.pyc
│   ├── Models
│   │   └── Conexao
│   ├── templates
│   │   └── index.html
│   └── View
│       ├── __init__.py
│       ├── __init__.pyc
│       ├── View_index_page.py
│       └── View_index_page.pyc
├── run.py
└── run.pyc

Run.py

from flask import Flask, Blueprint
from Project.View.View_index_page import simple_page


app = Flask(__name__)
app.register_blueprint(simple_page)  
app.run(debug=True)

view.py

from flask import Blueprint, render_template,url_for


simple_page = 
Blueprint('simple_page',__name__,template_folder='templates')

@simple_page.route('/')
    def show():
        return render_template('index.html')
    
asked by anonymous 24.11.2018 / 20:17

0 answers