Chapter 4

This commit is contained in:
2023-06-03 16:59:29 +02:00
parent c640e3ca82
commit f9020e921f
16 changed files with 396 additions and 0 deletions

15
app/__init__.py Normal file
View File

@@ -0,0 +1,15 @@
from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config.from_object(Config)
# Puestos fuera del tutorial
app.jinja_env.auto_reload = True
app.config["TEMPLATES_AUTO_RELOAD"] = True
db = SQLAlchemy(app)
migrate = Migrate(app, db)
from app import routes, models